home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1990-07-24 | 67.1 KB | [TEXT/MPS ] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Compact Compressed (Unix) (archive/compact)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Tue Jul 24 12:16:19 1990, modified Tue Jul 24 12:16:19 1990, creator 'MPS ', type ASCII, 67988 bytes "varasm.c" , at 0x10a14 428 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MPS ] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 08 76 61 72 61 73 6d | 2e 63 00 00 00 00 00 00 |..varasm|.c......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 00 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 01 09 94 00 | 00 01 ac a2 d2 24 d3 a2 |........|.....$..|
|00000060| d2 24 d3 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.$......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 c1 bf 00 00 |........|........|
|00000080| 2f 2a 20 4f 75 74 70 75 | 74 20 76 61 72 69 61 62 |/* Outpu|t variab|
|00000090| 6c 65 73 2c 20 63 6f 6e | 73 74 61 6e 74 73 20 61 |les, con|stants a|
|000000a0| 6e 64 20 65 78 74 65 72 | 6e 61 6c 20 64 65 63 6c |nd exter|nal decl|
|000000b0| 61 72 61 74 69 6f 6e 73 | 2c 20 66 6f 72 20 47 4e |arations|, for GN|
|000000c0| 55 20 63 6f 6d 70 69 6c | 65 72 2e 0d 20 20 20 43 |U compil|er.. C|
|000000d0| 6f 70 79 72 69 67 68 74 | 20 28 43 29 20 31 39 38 |opyright| (C) 198|
|000000e0| 37 2c 20 31 39 38 38 2c | 20 31 39 38 39 20 46 72 |7, 1988,| 1989 Fr|
|000000f0| 65 65 20 53 6f 66 74 77 | 61 72 65 20 46 6f 75 6e |ee Softw|are Foun|
|00000100| 64 61 74 69 6f 6e 2c 20 | 49 6e 63 2e 0d 20 20 20 |dation, |Inc.. |
|00000110| 43 6f 70 79 72 69 67 68 | 74 20 28 43 29 20 31 39 |Copyrigh|t (C) 19|
|00000120| 38 39 2c 20 31 39 39 30 | 20 41 70 70 6c 65 20 43 |89, 1990| Apple C|
|00000130| 6f 6d 70 75 74 65 72 2c | 20 49 6e 63 2e 0d 0d 54 |omputer,| Inc...T|
|00000140| 68 69 73 20 66 69 6c 65 | 20 69 73 20 70 61 72 74 |his file| is part|
|00000150| 20 6f 66 20 47 4e 55 20 | 43 43 2e 0d 0d 47 4e 55 | of GNU |CC...GNU|
|00000160| 20 43 43 20 69 73 20 66 | 72 65 65 20 73 6f 66 74 | CC is f|ree soft|
|00000170| 77 61 72 65 3b 20 79 6f | 75 20 63 61 6e 20 72 65 |ware; yo|u can re|
|00000180| 64 69 73 74 72 69 62 75 | 74 65 20 69 74 20 61 6e |distribu|te it an|
|00000190| 64 2f 6f 72 20 6d 6f 64 | 69 66 79 0d 69 74 20 75 |d/or mod|ify.it u|
|000001a0| 6e 64 65 72 20 74 68 65 | 20 74 65 72 6d 73 20 6f |nder the| terms o|
|000001b0| 66 20 74 68 65 20 47 4e | 55 20 47 65 6e 65 72 61 |f the GN|U Genera|
|000001c0| 6c 20 50 75 62 6c 69 63 | 20 4c 69 63 65 6e 73 65 |l Public| License|
|000001d0| 20 61 73 20 70 75 62 6c | 69 73 68 65 64 20 62 79 | as publ|ished by|
|000001e0| 0d 74 68 65 20 46 72 65 | 65 20 53 6f 66 74 77 61 |.the Fre|e Softwa|
|000001f0| 72 65 20 46 6f 75 6e 64 | 61 74 69 6f 6e 3b 20 65 |re Found|ation; e|
|00000200| 69 74 68 65 72 20 76 65 | 72 73 69 6f 6e 20 31 2c |ither ve|rsion 1,|
|00000210| 20 6f 72 20 28 61 74 20 | 79 6f 75 72 20 6f 70 74 | or (at |your opt|
|00000220| 69 6f 6e 29 0d 61 6e 79 | 20 6c 61 74 65 72 20 76 |ion).any| later v|
|00000230| 65 72 73 69 6f 6e 2e 0d | 0d 47 4e 55 20 43 43 20 |ersion..|.GNU CC |
|00000240| 69 73 20 64 69 73 74 72 | 69 62 75 74 65 64 20 69 |is distr|ibuted i|
|00000250| 6e 20 74 68 65 20 68 6f | 70 65 20 74 68 61 74 20 |n the ho|pe that |
|00000260| 69 74 20 77 69 6c 6c 20 | 62 65 20 75 73 65 66 75 |it will |be usefu|
|00000270| 6c 2c 0d 62 75 74 20 57 | 49 54 48 4f 55 54 20 41 |l,.but W|ITHOUT A|
|00000280| 4e 59 20 57 41 52 52 41 | 4e 54 59 3b 20 77 69 74 |NY WARRA|NTY; wit|
|00000290| 68 6f 75 74 20 65 76 65 | 6e 20 74 68 65 20 69 6d |hout eve|n the im|
|000002a0| 70 6c 69 65 64 20 77 61 | 72 72 61 6e 74 79 20 6f |plied wa|rranty o|
|000002b0| 66 0d 4d 45 52 43 48 41 | 4e 54 41 42 49 4c 49 54 |f.MERCHA|NTABILIT|
|000002c0| 59 20 6f 72 20 46 49 54 | 4e 45 53 53 20 46 4f 52 |Y or FIT|NESS FOR|
|000002d0| 20 41 20 50 41 52 54 49 | 43 55 4c 41 52 20 50 55 | A PARTI|CULAR PU|
|000002e0| 52 50 4f 53 45 2e 20 20 | 53 65 65 20 74 68 65 0d |RPOSE. |See the.|
|000002f0| 47 4e 55 20 47 65 6e 65 | 72 61 6c 20 50 75 62 6c |GNU Gene|ral Publ|
|00000300| 69 63 20 4c 69 63 65 6e | 73 65 20 66 6f 72 20 6d |ic Licen|se for m|
|00000310| 6f 72 65 20 64 65 74 61 | 69 6c 73 2e 0d 0d 59 6f |ore deta|ils...Yo|
|00000320| 75 20 73 68 6f 75 6c 64 | 20 68 61 76 65 20 72 65 |u should| have re|
|00000330| 63 65 69 76 65 64 20 61 | 20 63 6f 70 79 20 6f 66 |ceived a| copy of|
|00000340| 20 74 68 65 20 47 4e 55 | 20 47 65 6e 65 72 61 6c | the GNU| General|
|00000350| 20 50 75 62 6c 69 63 20 | 4c 69 63 65 6e 73 65 0d | Public |License.|
|00000360| 61 6c 6f 6e 67 20 77 69 | 74 68 20 47 4e 55 20 43 |along wi|th GNU C|
|00000370| 43 3b 20 73 65 65 20 74 | 68 65 20 66 69 6c 65 20 |C; see t|he file |
|00000380| 43 4f 50 59 49 4e 47 2e | 20 20 49 66 20 6e 6f 74 |COPYING.| If not|
|00000390| 2c 20 77 72 69 74 65 20 | 74 6f 0d 74 68 65 20 46 |, write |to.the F|
|000003a0| 72 65 65 20 53 6f 66 74 | 77 61 72 65 20 46 6f 75 |ree Soft|ware Fou|
|000003b0| 6e 64 61 74 69 6f 6e 2c | 20 36 37 35 20 4d 61 73 |ndation,| 675 Mas|
|000003c0| 73 20 41 76 65 2c 20 43 | 61 6d 62 72 69 64 67 65 |s Ave, C|ambridge|
|000003d0| 2c 20 4d 41 20 30 32 31 | 33 39 2c 20 55 53 41 2e |, MA 021|39, USA.|
|000003e0| 20 20 2a 2f 0d 0d 0d 2f | 2a 20 54 68 69 73 20 66 | */.../|* This f|
|000003f0| 69 6c 65 20 68 61 6e 64 | 6c 65 73 20 67 65 6e 65 |ile hand|les gene|
|00000400| 72 61 74 69 6f 6e 20 6f | 66 20 61 6c 6c 20 74 68 |ration o|f all th|
|00000410| 65 20 61 73 73 65 6d 62 | 6c 65 72 20 63 6f 64 65 |e assemb|ler code|
|00000420| 0d 20 20 20 2a 65 78 63 | 65 70 74 2a 20 74 68 65 |. *exc|ept* the|
|00000430| 20 69 6e 73 74 72 75 63 | 74 69 6f 6e 73 20 6f 66 | instruc|tions of|
|00000440| 20 61 20 66 75 6e 63 74 | 69 6f 6e 2e 0d 20 20 20 | a funct|ion.. |
|00000450| 54 68 69 73 20 69 6e 63 | 6c 75 64 65 73 20 64 65 |This inc|ludes de|
|00000460| 63 6c 61 72 61 74 69 6f | 6e 73 20 6f 66 20 76 61 |claratio|ns of va|
|00000470| 72 69 61 62 6c 65 73 20 | 61 6e 64 20 74 68 65 69 |riables |and thei|
|00000480| 72 20 69 6e 69 74 69 61 | 6c 20 76 61 6c 75 65 73 |r initia|l values|
|00000490| 2e 0d 0d 20 20 20 57 65 | 20 61 6c 73 6f 20 6f 75 |... We| also ou|
|000004a0| 74 70 75 74 20 74 68 65 | 20 61 73 73 65 6d 62 6c |tput the| assembl|
|000004b0| 65 72 20 63 6f 64 65 20 | 66 6f 72 20 63 6f 6e 73 |er code |for cons|
|000004c0| 74 61 6e 74 73 20 73 74 | 6f 72 65 64 20 69 6e 20 |tants st|ored in |
|000004d0| 6d 65 6d 6f 72 79 0d 20 | 20 20 61 6e 64 20 61 72 |memory. | and ar|
|000004e0| 65 20 72 65 73 70 6f 6e | 73 69 62 6c 65 20 66 6f |e respon|sible fo|
|000004f0| 72 20 63 6f 6d 62 69 6e | 69 6e 67 20 63 6f 6e 73 |r combin|ing cons|
|00000500| 74 61 6e 74 73 20 77 69 | 74 68 20 74 68 65 20 73 |tants wi|th the s|
|00000510| 61 6d 65 20 76 61 6c 75 | 65 2e 20 20 2a 2f 0d 0d |ame valu|e. */..|
|00000520| 23 69 6e 63 6c 75 64 65 | 20 3c 73 74 64 69 6f 2e |#include| <stdio.|
|00000530| 68 3e 0d 23 69 6e 63 6c | 75 64 65 20 3c 73 65 74 |h>.#incl|ude <set|
|00000540| 6a 6d 70 2e 68 3e 0d 2f | 2a 20 23 69 6e 63 6c 75 |jmp.h>./|* #inclu|
|00000550| 64 65 20 3c 73 74 61 62 | 2e 68 3e 20 2a 2f 0d 23 |de <stab|.h> */.#|
|00000560| 69 6e 63 6c 75 64 65 20 | 22 63 6f 6e 66 69 67 2e |include |"config.|
|00000570| 68 22 0d 23 69 6e 63 6c | 75 64 65 20 22 72 74 6c |h".#incl|ude "rtl|
|00000580| 2e 68 22 0d 23 69 6e 63 | 6c 75 64 65 20 22 74 72 |.h".#inc|lude "tr|
|00000590| 65 65 2e 68 22 0d 23 69 | 6e 63 6c 75 64 65 20 22 |ee.h".#i|nclude "|
|000005a0| 66 6c 61 67 73 2e 68 22 | 0d 23 69 6e 63 6c 75 64 |flags.h"|.#includ|
|000005b0| 65 20 22 65 78 70 72 2e | 68 22 0d 23 69 6e 63 6c |e "expr.|h".#incl|
|000005c0| 75 64 65 20 22 68 61 72 | 64 2d 72 65 67 2d 73 65 |ude "har|d-reg-se|
|000005d0| 74 2e 68 22 0d 0d 23 69 | 6e 63 6c 75 64 65 20 22 |t.h"..#i|nclude "|
|000005e0| 6f 62 73 74 61 63 6b 2e | 68 22 0d 0d 23 64 65 66 |obstack.|h"..#def|
|000005f0| 69 6e 65 20 4d 49 4e 28 | 61 2c 20 62 29 20 28 28 |ine MIN(|a, b) ((|
|00000600| 61 29 20 3c 20 28 62 29 | 20 3f 20 28 61 29 20 3a |a) < (b)| ? (a) :|
|00000610| 20 28 62 29 29 0d 0d 2f | 2a 20 46 69 6c 65 20 69 | (b))../|* File i|
|00000620| 6e 20 77 68 69 63 68 20 | 61 73 73 65 6d 62 6c 65 |n which |assemble|
|00000630| 72 20 63 6f 64 65 20 69 | 73 20 62 65 69 6e 67 20 |r code i|s being |
|00000640| 77 72 69 74 74 65 6e 2e | 20 20 2a 2f 0d 0d 65 78 |written.| */..ex|
|00000650| 74 65 72 6e 20 46 49 4c | 45 20 2a 61 73 6d 5f 6f |tern FIL|E *asm_o|
|00000660| 75 74 5f 66 69 6c 65 3b | 0d 0d 65 78 74 65 72 6e |ut_file;|..extern|
|00000670| 20 73 74 72 75 63 74 20 | 6f 62 73 74 61 63 6b 20 | struct |obstack |
|00000680| 2a 63 75 72 72 65 6e 74 | 5f 6f 62 73 74 61 63 6b |*current|_obstack|
|00000690| 3b 0d 65 78 74 65 72 6e | 20 73 74 72 75 63 74 20 |;.extern| struct |
|000006a0| 6f 62 73 74 61 63 6b 20 | 2a 73 61 76 65 61 62 6c |obstack |*saveabl|
|000006b0| 65 5f 6f 62 73 74 61 63 | 6b 3b 0d 65 78 74 65 72 |e_obstac|k;.exter|
|000006c0| 6e 20 73 74 72 75 63 74 | 20 6f 62 73 74 61 63 6b |n struct| obstack|
|000006d0| 20 70 65 72 6d 61 6e 65 | 6e 74 5f 6f 62 73 74 61 | permane|nt_obsta|
|000006e0| 63 6b 3b 0d 23 64 65 66 | 69 6e 65 20 6f 62 73 74 |ck;.#def|ine obst|
|000006f0| 61 63 6b 5f 63 68 75 6e | 6b 5f 61 6c 6c 6f 63 20 |ack_chun|k_alloc |
|00000700| 78 6d 61 6c 6c 6f 63 0d | 65 78 74 65 72 6e 20 69 |xmalloc.|extern i|
|00000710| 6e 74 20 78 6d 61 6c 6c | 6f 63 20 28 29 3b 0d 0d |nt xmall|oc ();..|
|00000720| 2f 2a 20 4e 75 6d 62 65 | 72 20 66 6f 72 20 6d 61 |/* Numbe|r for ma|
|00000730| 6b 69 6e 67 20 74 68 65 | 20 6c 61 62 65 6c 20 6f |king the| label o|
|00000740| 6e 20 74 68 65 20 6e 65 | 78 74 0d 20 20 20 63 6f |n the ne|xt. co|
|00000750| 6e 73 74 61 6e 74 20 74 | 68 61 74 20 69 73 20 73 |nstant t|hat is s|
|00000760| 74 6f 72 65 64 20 69 6e | 20 6d 65 6d 6f 72 79 2e |tored in| memory.|
|00000770| 20 20 2a 2f 0d 0d 69 6e | 74 20 63 6f 6e 73 74 5f | */..in|t const_|
|00000780| 6c 61 62 65 6c 6e 6f 3b | 0d 0d 2f 2a 20 4e 75 6d |labelno;|../* Num|
|00000790| 62 65 72 20 66 6f 72 20 | 6d 61 6b 69 6e 67 20 74 |ber for |making t|
|000007a0| 68 65 20 6c 61 62 65 6c | 20 6f 6e 20 74 68 65 20 |he label| on the |
|000007b0| 6e 65 78 74 0d 20 20 20 | 73 74 61 74 69 63 20 76 |next. |static v|
|000007c0| 61 72 69 61 62 6c 65 20 | 69 6e 74 65 72 6e 61 6c |ariable |internal|
|000007d0| 20 74 6f 20 61 20 66 75 | 6e 63 74 69 6f 6e 2e 20 | to a fu|nction. |
|000007e0| 20 2a 2f 0d 0d 69 6e 74 | 20 76 61 72 5f 6c 61 62 | */..int| var_lab|
|000007f0| 65 6c 6e 6f 3b 0d 0d 2f | 2a 20 4e 6f 6e 7a 65 72 |elno;../|* Nonzer|
|00000800| 6f 20 69 66 20 61 74 20 | 6c 65 61 73 74 20 6f 6e |o if at |least on|
|00000810| 65 20 66 75 6e 63 74 69 | 6f 6e 20 64 65 66 69 6e |e functi|on defin|
|00000820| 69 74 69 6f 6e 20 68 61 | 73 20 62 65 65 6e 20 73 |ition ha|s been s|
|00000830| 65 65 6e 2e 20 20 2a 2f | 0d 73 74 61 74 69 63 20 |een. */|.static |
|00000840| 69 6e 74 20 66 75 6e 63 | 74 69 6f 6e 5f 64 65 66 |int func|tion_def|
|00000850| 69 6e 65 64 3b 0d 0d 65 | 78 74 65 72 6e 20 46 49 |ined;..e|xtern FI|
|00000860| 4c 45 20 2a 61 73 6d 5f | 6f 75 74 5f 66 69 6c 65 |LE *asm_|out_file|
|00000870| 3b 0d 0d 23 69 66 64 65 | 66 20 41 50 50 4c 45 5f |;..#ifde|f APPLE_|
|00000880| 43 0d 2f 2a 20 4d 61 67 | 69 63 20 66 75 6e 63 74 |C./* Mag|ic funct|
|00000890| 69 6f 6e 20 66 6f 72 20 | 62 75 69 6c 64 69 6e 67 |ion for |building|
|000008a0| 20 64 69 72 65 63 74 20 | 64 65 66 69 6e 69 74 69 | direct |definiti|
|000008b0| 6f 6e 73 2e 20 2a 2f 0d | 63 68 61 72 20 2a 62 75 |ons. */.|char *bu|
|000008c0| 69 6c 64 5f 64 69 72 65 | 63 74 5f 64 65 66 6e 20 |ild_dire|ct_defn |
|000008d0| 28 29 3b 0d 23 65 6e 64 | 69 66 20 2f 2a 20 41 50 |();.#end|if /* AP|
|000008e0| 50 4c 45 5f 43 20 2a 2f | 0d 73 74 61 74 69 63 20 |PLE_C */|.static |
|000008f0| 63 68 61 72 20 2a 63 6f | 6d 70 61 72 65 5f 63 6f |char *co|mpare_co|
|00000900| 6e 73 74 61 6e 74 5f 31 | 20 28 29 3b 0d 73 74 61 |nstant_1| ();.sta|
|00000910| 74 69 63 20 76 6f 69 64 | 20 72 65 63 6f 72 64 5f |tic void| record_|
|00000920| 63 6f 6e 73 74 61 6e 74 | 5f 31 20 28 29 3b 0d 76 |constant|_1 ();.v|
|00000930| 6f 69 64 20 61 73 73 65 | 6d 62 6c 65 5f 6e 61 6d |oid asse|mble_nam|
|00000940| 65 20 28 29 3b 0d 76 6f | 69 64 20 6f 75 74 70 75 |e ();.vo|id outpu|
|00000950| 74 5f 61 64 64 72 65 73 | 73 65 64 5f 63 6f 6e 73 |t_addres|sed_cons|
|00000960| 74 61 6e 74 73 20 28 29 | 3b 0d 76 6f 69 64 20 6f |tants ()|;.void o|
|00000970| 75 74 70 75 74 5f 63 6f | 6e 73 74 61 6e 74 20 28 |utput_co|nstant (|
|00000980| 29 3b 0d 76 6f 69 64 20 | 6f 75 74 70 75 74 5f 63 |);.void |output_c|
|00000990| 6f 6e 73 74 72 75 63 74 | 6f 72 20 28 29 3b 0d 0c |onstruct|or ();..|
|000009a0| 0d 23 69 66 64 65 66 20 | 45 58 54 52 41 5f 53 45 |.#ifdef |EXTRA_SE|
|000009b0| 43 54 49 4f 4e 53 0d 73 | 74 61 74 69 63 20 65 6e |CTIONS.s|tatic en|
|000009c0| 75 6d 20 69 6e 5f 73 65 | 63 74 69 6f 6e 20 7b 6e |um in_se|ction {n|
|000009d0| 6f 5f 73 65 63 74 69 6f | 6e 2c 20 69 6e 5f 74 65 |o_sectio|n, in_te|
|000009e0| 78 74 2c 20 69 6e 5f 64 | 61 74 61 2c 20 45 58 54 |xt, in_d|ata, EXT|
|000009f0| 52 41 5f 53 45 43 54 49 | 4f 4e 53 7d 20 69 6e 5f |RA_SECTI|ONS} in_|
|00000a00| 73 65 63 74 69 6f 6e 0d | 20 20 3d 20 6e 6f 5f 73 |section.| = no_s|
|00000a10| 65 63 74 69 6f 6e 3b 0d | 23 65 6c 73 65 0d 73 74 |ection;.|#else.st|
|00000a20| 61 74 69 63 20 65 6e 75 | 6d 20 69 6e 5f 73 65 63 |atic enu|m in_sec|
|00000a30| 74 69 6f 6e 20 7b 6e 6f | 5f 73 65 63 74 69 6f 6e |tion {no|_section|
|00000a40| 2c 20 69 6e 5f 74 65 78 | 74 2c 20 69 6e 5f 64 61 |, in_tex|t, in_da|
|00000a50| 74 61 7d 20 69 6e 5f 73 | 65 63 74 69 6f 6e 0d 20 |ta} in_s|ection. |
|00000a60| 20 3d 20 6e 6f 5f 73 65 | 63 74 69 6f 6e 3b 0d 23 | = no_se|ction;.#|
|00000a70| 65 6e 64 69 66 0d 0d 2f | 2a 20 44 65 66 69 6e 65 |endif../|* Define|
|00000a80| 20 66 75 6e 63 74 69 6f | 6e 73 20 6c 69 6b 65 20 | functio|ns like |
|00000a90| 74 65 78 74 5f 73 65 63 | 74 69 6f 6e 20 66 6f 72 |text_sec|tion for|
|00000aa0| 20 61 6e 79 20 65 78 74 | 72 61 20 73 65 63 74 69 | any ext|ra secti|
|00000ab0| 6f 6e 73 2e 20 20 2a 2f | 0d 23 69 66 64 65 66 20 |ons. */|.#ifdef |
|00000ac0| 45 58 54 52 41 5f 53 45 | 43 54 49 4f 4e 5f 46 55 |EXTRA_SE|CTION_FU|
|00000ad0| 4e 43 54 49 4f 4e 53 0d | 45 58 54 52 41 5f 53 45 |NCTIONS.|EXTRA_SE|
|00000ae0| 43 54 49 4f 4e 5f 46 55 | 4e 43 54 49 4f 4e 53 0d |CTION_FU|NCTIONS.|
|00000af0| 23 65 6e 64 69 66 0d 0d | 2f 2a 20 54 65 6c 6c 20 |#endif..|/* Tell |
|00000b00| 61 73 73 65 6d 62 6c 65 | 72 20 74 6f 20 73 77 69 |assemble|r to swi|
|00000b10| 74 63 68 20 74 6f 20 74 | 65 78 74 20 73 65 63 74 |tch to t|ext sect|
|00000b20| 69 6f 6e 2e 20 20 2a 2f | 0d 0d 76 6f 69 64 0d 74 |ion. */|..void.t|
|00000b30| 65 78 74 5f 73 65 63 74 | 69 6f 6e 20 28 29 0d 7b |ext_sect|ion ().{|
|00000b40| 0d 20 20 69 66 20 28 69 | 6e 5f 73 65 63 74 69 6f |. if (i|n_sectio|
|00000b50| 6e 20 21 3d 20 69 6e 5f | 74 65 78 74 29 0d 20 20 |n != in_|text). |
|00000b60| 20 20 7b 0d 20 20 20 20 | 20 20 66 70 72 69 6e 74 | {. | fprint|
|00000b70| 66 20 28 61 73 6d 5f 6f | 75 74 5f 66 69 6c 65 2c |f (asm_o|ut_file,|
|00000b80| 20 22 25 73 5c 6e 22 2c | 20 54 45 58 54 5f 53 45 | "%s\n",| TEXT_SE|
|00000b90| 43 54 49 4f 4e 5f 41 53 | 4d 5f 4f 50 29 3b 0d 20 |CTION_AS|M_OP);. |
|00000ba0| 20 20 20 20 20 69 6e 5f | 73 65 63 74 69 6f 6e 20 | in_|section |
|00000bb0| 3d 20 69 6e 5f 74 65 78 | 74 3b 0d 20 20 20 20 7d |= in_tex|t;. }|
|00000bc0| 0d 7d 0d 0d 2f 2a 20 54 | 65 6c 6c 20 61 73 73 65 |.}../* T|ell asse|
|00000bd0| 6d 62 6c 65 72 20 74 6f | 20 73 77 69 74 63 68 20 |mbler to| switch |
|00000be0| 74 6f 20 64 61 74 61 20 | 73 65 63 74 69 6f 6e 2e |to data |section.|
|00000bf0| 20 20 2a 2f 0d 0d 76 6f | 69 64 0d 64 61 74 61 5f | */..vo|id.data_|
|00000c00| 73 65 63 74 69 6f 6e 20 | 28 29 0d 7b 0d 20 20 69 |section |().{. i|
|00000c10| 66 20 28 69 6e 5f 73 65 | 63 74 69 6f 6e 20 21 3d |f (in_se|ction !=|
|00000c20| 20 69 6e 5f 64 61 74 61 | 29 0d 20 20 20 20 7b 0d | in_data|). {.|
|00000c30| 20 20 20 20 20 20 69 66 | 20 28 66 6c 61 67 5f 73 | if| (flag_s|
|00000c40| 68 61 72 65 64 5f 64 61 | 74 61 29 0d 09 7b 0d 23 |hared_da|ta)..{.#|
|00000c50| 69 66 64 65 66 20 53 48 | 41 52 45 44 5f 53 45 43 |ifdef SH|ARED_SEC|
|00000c60| 54 49 4f 4e 5f 41 53 4d | 5f 4f 50 0d 09 20 20 66 |TION_ASM|_OP.. f|
|00000c70| 70 72 69 6e 74 66 20 28 | 61 73 6d 5f 6f 75 74 5f |printf (|asm_out_|
|00000c80| 66 69 6c 65 2c 20 22 25 | 73 5c 6e 22 2c 20 53 48 |file, "%|s\n", SH|
|00000c90| 41 52 45 44 5f 53 45 43 | 54 49 4f 4e 5f 41 53 4d |ARED_SEC|TION_ASM|
|00000ca0| 5f 4f 50 29 3b 0d 23 65 | 6c 73 65 0d 09 20 20 66 |_OP);.#e|lse.. f|
|00000cb0| 70 72 69 6e 74 66 20 28 | 61 73 6d 5f 6f 75 74 5f |printf (|asm_out_|
|00000cc0| 66 69 6c 65 2c 20 22 25 | 73 5c 6e 22 2c 20 44 41 |file, "%|s\n", DA|
|00000cd0| 54 41 5f 53 45 43 54 49 | 4f 4e 5f 41 53 4d 5f 4f |TA_SECTI|ON_ASM_O|
|00000ce0| 50 29 3b 0d 23 65 6e 64 | 69 66 0d 09 7d 0d 20 20 |P);.#end|if..}. |
|00000cf0| 20 20 20 20 65 6c 73 65 | 0d 09 66 70 72 69 6e 74 | else|..fprint|
|00000d00| 66 20 28 61 73 6d 5f 6f | 75 74 5f 66 69 6c 65 2c |f (asm_o|ut_file,|
|00000d10| 20 22 25 73 5c 6e 22 2c | 20 44 41 54 41 5f 53 45 | "%s\n",| DATA_SE|
|00000d20| 43 54 49 4f 4e 5f 41 53 | 4d 5f 4f 50 29 3b 0d 0d |CTION_AS|M_OP);..|
|00000d30| 20 20 20 20 20 20 69 6e | 5f 73 65 63 74 69 6f 6e | in|_section|
|00000d40| 20 3d 20 69 6e 5f 64 61 | 74 61 3b 0d 20 20 20 20 | = in_da|ta;. |
|00000d50| 7d 0d 7d 0d 0d 2f 2a 20 | 44 65 74 65 72 6d 69 6e |}.}../* |Determin|
|00000d60| 65 20 69 66 20 77 65 27 | 72 65 20 69 6e 20 74 68 |e if we'|re in th|
|00000d70| 65 20 74 65 78 74 20 73 | 65 63 74 69 6f 6e 2e 20 |e text s|ection. |
|00000d80| 2a 2f 0d 0d 69 6e 74 0d | 69 6e 5f 74 65 78 74 5f |*/..int.|in_text_|
|00000d90| 73 65 63 74 69 6f 6e 20 | 28 29 0d 7b 0d 20 20 72 |section |().{. r|
|00000da0| 65 74 75 72 6e 20 69 6e | 5f 73 65 63 74 69 6f 6e |eturn in|_section|
|00000db0| 20 3d 3d 20 69 6e 5f 74 | 65 78 74 3b 0d 7d 0d 0c | == in_t|ext;.}..|
|00000dc0| 0d 2f 2a 20 43 72 65 61 | 74 65 20 74 68 65 20 72 |./* Crea|te the r|
|00000dd0| 74 6c 20 74 6f 20 72 65 | 70 72 65 73 65 6e 74 20 |tl to re|present |
|00000de0| 61 20 66 75 6e 63 74 69 | 6f 6e 2c 20 66 6f 72 20 |a functi|on, for |
|00000df0| 61 20 66 75 6e 63 74 69 | 6f 6e 20 64 65 66 69 6e |a functi|on defin|
|00000e00| 69 74 69 6f 6e 2e 0d 20 | 20 20 44 45 43 4c 20 69 |ition.. | DECL i|
|00000e10| 73 20 61 20 46 55 4e 43 | 54 49 4f 4e 5f 44 45 43 |s a FUNC|TION_DEC|
|00000e20| 4c 20 6e 6f 64 65 20 77 | 68 69 63 68 20 64 65 73 |L node w|hich des|
|00000e30| 63 72 69 62 65 73 20 77 | 68 69 63 68 20 66 75 6e |cribes w|hich fun|
|00000e40| 63 74 69 6f 6e 2e 0d 20 | 20 20 54 68 65 20 72 74 |ction.. | The rt|
|00000e50| 6c 20 69 73 20 73 74 6f | 72 65 64 20 69 6e 74 6f |l is sto|red into|
|00000e60| 20 44 45 43 4c 2e 20 20 | 2a 2f 0d 0d 76 6f 69 64 | DECL. |*/..void|
|00000e70| 0d 6d 61 6b 65 5f 66 75 | 6e 63 74 69 6f 6e 5f 72 |.make_fu|nction_r|
|00000e80| 74 6c 20 28 64 65 63 6c | 29 0d 20 20 20 20 20 74 |tl (decl|). t|
|00000e90| 72 65 65 20 64 65 63 6c | 3b 0d 7b 0d 23 69 66 64 |ree decl|;.{.#ifd|
|00000ea0| 65 66 20 41 50 50 4c 45 | 5f 43 0d 20 20 2f 2a 20 |ef APPLE|_C. /* |
|00000eb0| 50 61 73 63 61 6c 20 66 | 75 6e 63 74 69 6f 6e 73 |Pascal f|unctions|
|00000ec0| 20 6d 75 73 74 20 62 65 | 20 6d 61 70 70 65 64 20 | must be| mapped |
|00000ed0| 69 6e 74 6f 20 61 6c 6c | 2d 75 70 70 65 72 2d 63 |into all|-upper-c|
|00000ee0| 61 73 65 2e 20 20 44 6f | 6e 27 74 20 77 6f 72 72 |ase. Do|n't worr|
|00000ef0| 79 0d 20 20 20 20 20 61 | 62 6f 75 74 20 77 68 65 |y. a|bout whe|
|00000f00| 74 68 65 72 20 74 68 65 | 72 65 20 61 72 65 20 66 |ther the|re are f|
|00000f10| 75 6e 63 74 69 6f 6e 20 | 6e 61 6d 65 73 20 64 69 |unction |names di|
|00000f20| 66 66 65 72 69 6e 67 20 | 6f 6e 6c 79 20 69 6e 20 |ffering |only in |
|00000f30| 63 61 73 65 2c 20 4d 50 | 57 0d 20 20 20 20 20 64 |case, MP|W. d|
|00000f40| 6f 65 73 6e 27 74 20 65 | 69 74 68 65 72 2e 2e 2e |oesn't e|ither...|
|00000f50| 20 2a 2f 0d 20 20 69 66 | 20 28 54 52 45 45 5f 50 | */. if| (TREE_P|
|00000f60| 41 53 43 41 4c 20 28 64 | 65 63 6c 29 29 0d 20 20 |ASCAL (d|ecl)). |
|00000f70| 20 20 73 74 72 69 6e 67 | 5f 75 70 63 61 73 65 28 | string|_upcase(|
|00000f80| 44 45 43 4c 5f 41 53 53 | 45 4d 42 4c 45 52 5f 4e |DECL_ASS|EMBLER_N|
|00000f90| 41 4d 45 20 28 64 65 63 | 6c 29 29 3b 0d 23 65 6e |AME (dec|l));.#en|
|00000fa0| 64 69 66 20 2f 2a 20 41 | 50 50 4c 45 5f 43 20 2a |dif /* A|PPLE_C *|
|00000fb0| 2f 0d 23 69 66 64 65 66 | 20 41 50 50 4c 45 5f 48 |/.#ifdef| APPLE_H|
|00000fc0| 41 58 0d 20 20 2f 2a 20 | 49 64 65 6e 74 69 66 79 |AX. /* |Identify|
|00000fd0| 69 6e 67 20 74 68 65 20 | 66 75 6e 63 74 69 6f 6e |ing the |function|
|00000fe0| 27 73 20 6e 61 6d 65 20 | 61 73 20 61 20 63 6f 64 |'s name |as a cod|
|00000ff0| 65 20 6c 61 62 65 6c 20 | 6e 65 65 64 20 6f 6e 6c |e label |need onl|
|00001000| 79 20 62 65 20 64 6f 6e | 65 0d 20 20 20 20 20 69 |y be don|e. i|
|00001010| 66 20 74 6d 2e 68 20 61 | 73 6b 73 20 66 6f 72 20 |f tm.h a|sks for |
|00001020| 69 74 2e 20 2a 2f 0d 23 | 69 66 64 65 66 20 41 53 |it. */.#|ifdef AS|
|00001030| 4d 5f 46 55 4e 43 54 49 | 4f 4e 49 46 59 5f 4e 41 |M_FUNCTI|ONIFY_NA|
|00001040| 4d 45 0d 20 20 41 53 4d | 5f 46 55 4e 43 54 49 4f |ME. ASM|_FUNCTIO|
|00001050| 4e 49 46 59 5f 4e 41 4d | 45 20 28 44 45 43 4c 5f |NIFY_NAM|E (DECL_|
|00001060| 41 53 53 45 4d 42 4c 45 | 52 5f 4e 41 4d 45 20 28 |ASSEMBLE|R_NAME (|
|00001070| 64 65 63 6c 29 29 3b 0d | 23 65 6e 64 69 66 0d 23 |decl));.|#endif.#|
|00001080| 65 6e 64 69 66 20 2f 2a | 20 41 50 50 4c 45 5f 48 |endif /*| APPLE_H|
|00001090| 41 58 20 2a 2f 0d 0d 20 | 20 69 66 20 28 44 45 43 |AX */.. | if (DEC|
|000010a0| 4c 5f 52 54 4c 20 28 64 | 65 63 6c 29 20 3d 3d 20 |L_RTL (d|ecl) == |
|000010b0| 30 29 0d 20 20 20 20 44 | 45 43 4c 5f 52 54 4c 20 |0). D|ECL_RTL |
|000010c0| 28 64 65 63 6c 29 0d 20 | 20 20 20 20 20 3d 20 67 |(decl). | = g|
|000010d0| 65 6e 5f 72 74 78 20 28 | 4d 45 4d 2c 20 44 45 43 |en_rtx (|MEM, DEC|
|000010e0| 4c 5f 4d 4f 44 45 20 28 | 64 65 63 6c 29 2c 0d 09 |L_MODE (|decl),..|
|000010f0| 09 20 67 65 6e 5f 72 74 | 78 20 28 53 59 4d 42 4f |. gen_rt|x (SYMBO|
|00001100| 4c 5f 52 45 46 2c 20 50 | 6d 6f 64 65 2c 20 44 45 |L_REF, P|mode, DE|
|00001110| 43 4c 5f 41 53 53 45 4d | 42 4c 45 52 5f 4e 41 4d |CL_ASSEM|BLER_NAM|
|00001120| 45 20 28 64 65 63 6c 29 | 29 29 3b 0d 0d 20 20 2f |E (decl)|));.. /|
|00001130| 2a 20 52 65 63 6f 72 64 | 20 61 74 20 6c 65 61 73 |* Record| at leas|
|00001140| 74 20 6f 6e 65 20 66 75 | 6e 63 74 69 6f 6e 20 68 |t one fu|nction h|
|00001150| 61 73 20 62 65 65 6e 20 | 64 65 66 69 6e 65 64 2e |as been |defined.|
|00001160| 20 20 2a 2f 0d 20 20 66 | 75 6e 63 74 69 6f 6e 5f | */. f|unction_|
|00001170| 64 65 66 69 6e 65 64 20 | 3d 20 31 3b 0d 7d 0d 0d |defined |= 1;.}..|
|00001180| 2f 2a 20 44 65 63 6f 64 | 65 20 61 6e 20 60 61 73 |/* Decod|e an `as|
|00001190| 6d 27 20 73 70 65 63 20 | 66 6f 72 20 61 20 64 65 |m' spec |for a de|
|000011a0| 63 6c 61 72 61 74 69 6f | 6e 20 61 73 20 61 20 72 |claratio|n as a r|
|000011b0| 65 67 69 73 74 65 72 20 | 6e 61 6d 65 2e 0d 20 20 |egister |name.. |
|000011c0| 20 52 65 74 75 72 6e 20 | 74 68 65 20 72 65 67 69 | Return |the regi|
|000011d0| 73 74 65 72 20 6e 75 6d | 62 65 72 2c 20 6f 72 20 |ster num|ber, or |
|000011e0| 2d 31 20 69 66 20 6e 6f | 74 68 69 6e 67 20 73 70 |-1 if no|thing sp|
|000011f0| 65 63 69 66 69 65 64 2c | 0d 20 20 20 6f 72 20 2d |ecified,|. or -|
|00001200| 32 20 69 66 20 74 68 65 | 20 6e 61 6d 65 20 69 73 |2 if the| name is|
|00001210| 20 6e 6f 74 20 61 20 72 | 65 67 69 73 74 65 72 2e | not a r|egister.|
|00001220| 20 20 2a 2f 0d 0d 69 6e | 74 0d 64 65 63 6f 64 65 | */..in|t.decode|
|00001230| 5f 72 65 67 5f 6e 61 6d | 65 20 28 61 73 6d 73 70 |_reg_nam|e (asmsp|
|00001240| 65 63 29 0d 20 20 20 20 | 20 63 68 61 72 20 2a 61 |ec). | char *a|
|00001250| 73 6d 73 70 65 63 3b 0d | 7b 0d 20 20 69 66 20 28 |smspec;.|{. if (|
|00001260| 61 73 6d 73 70 65 63 20 | 21 3d 20 30 29 0d 20 20 |asmspec |!= 0). |
|00001270| 20 20 7b 0d 20 20 20 20 | 20 20 69 6e 74 20 69 3b | {. | int i;|
|00001280| 0d 20 20 20 20 20 20 65 | 78 74 65 72 6e 20 63 68 |. e|xtern ch|
|00001290| 61 72 20 2a 72 65 67 5f | 6e 61 6d 65 73 5b 5d 3b |ar *reg_|names[];|
|000012a0| 0d 0d 20 20 20 20 20 20 | 66 6f 72 20 28 69 20 3d |.. |for (i =|
|000012b0| 20 30 3b 20 69 20 3c 20 | 46 49 52 53 54 5f 50 53 | 0; i < |FIRST_PS|
|000012c0| 45 55 44 4f 5f 52 45 47 | 49 53 54 45 52 3b 20 69 |EUDO_REG|ISTER; i|
|000012d0| 2b 2b 29 0d 09 69 66 20 | 28 21 73 74 72 63 6d 70 |++)..if |(!strcmp|
|000012e0| 20 28 61 73 6d 73 70 65 | 63 2c 20 72 65 67 5f 6e | (asmspe|c, reg_n|
|000012f0| 61 6d 65 73 5b 69 5d 29 | 29 0d 09 20 20 62 72 65 |ames[i])|).. bre|
|00001300| 61 6b 3b 0d 0d 20 20 20 | 20 20 20 69 66 20 28 69 |ak;.. | if (i|
|00001310| 20 3c 20 46 49 52 53 54 | 5f 50 53 45 55 44 4f 5f | < FIRST|_PSEUDO_|
|00001320| 52 45 47 49 53 54 45 52 | 29 0d 09 72 65 74 75 72 |REGISTER|)..retur|
|00001330| 6e 20 69 3b 0d 20 20 20 | 20 20 20 65 6c 73 65 0d |n i;. | else.|
|00001340| 09 72 65 74 75 72 6e 20 | 2d 32 3b 0d 20 20 20 20 |.return |-2;. |
|00001350| 7d 0d 0d 20 20 72 65 74 | 75 72 6e 20 2d 31 3b 0d |}.. ret|urn -1;.|
|00001360| 7d 0d 0d 2f 2a 20 43 72 | 65 61 74 65 20 74 68 65 |}../* Cr|eate the|
|00001370| 20 44 45 43 4c 5f 52 54 | 4c 20 66 6f 72 20 61 20 | DECL_RT|L for a |
|00001380| 64 65 63 6c 61 72 61 74 | 69 6f 6e 20 66 6f 72 20 |declarat|ion for |
|00001390| 61 20 73 74 61 74 69 63 | 20 6f 72 20 65 78 74 65 |a static| or exte|
|000013a0| 72 6e 61 6c 20 76 61 72 | 69 61 62 6c 65 0d 20 20 |rnal var|iable. |
|000013b0| 20 6f 72 20 73 74 61 74 | 69 63 20 6f 72 20 65 78 | or stat|ic or ex|
|000013c0| 74 65 72 6e 61 6c 20 66 | 75 6e 63 74 69 6f 6e 2e |ternal f|unction.|
|000013d0| 0d 20 20 20 41 53 4d 53 | 50 45 43 2c 20 69 66 20 |. ASMS|PEC, if |
|000013e0| 6e 6f 74 20 30 2c 20 69 | 73 20 74 68 65 20 73 74 |not 0, i|s the st|
|000013f0| 72 69 6e 67 20 77 68 69 | 63 68 20 74 68 65 20 75 |ring whi|ch the u|
|00001400| 73 65 72 20 73 70 65 63 | 69 66 69 65 64 0d 20 20 |ser spec|ified. |
|00001410| 20 61 73 20 74 68 65 20 | 61 73 73 65 6d 62 6c 65 | as the |assemble|
|00001420| 72 20 73 79 6d 62 6f 6c | 20 6e 61 6d 65 2e 0d 20 |r symbol| name.. |
|00001430| 20 20 54 4f 50 5f 4c 45 | 56 45 4c 20 69 73 20 6e | TOP_LE|VEL is n|
|00001440| 6f 6e 7a 65 72 6f 20 69 | 66 20 74 68 69 73 20 69 |onzero i|f this i|
|00001450| 73 20 61 20 66 69 6c 65 | 2d 73 63 6f 70 65 20 76 |s a file|-scope v|
|00001460| 61 72 69 61 62 6c 65 2e | 0d 0d 20 20 20 54 68 69 |ariable.|.. Thi|
|00001470| 73 20 69 73 20 6e 65 76 | 65 72 20 63 61 6c 6c 65 |s is nev|er calle|
|00001480| 64 20 66 6f 72 20 50 41 | 52 4d 5f 44 45 43 4c 20 |d for PA|RM_DECL |
|00001490| 6e 6f 64 65 73 2e 20 20 | 2a 2f 0d 0d 76 6f 69 64 |nodes. |*/..void|
|000014a0| 0d 6d 61 6b 65 5f 64 65 | 63 6c 5f 72 74 6c 20 28 |.make_de|cl_rtl (|
|000014b0| 64 65 63 6c 2c 20 61 73 | 6d 73 70 65 63 2c 20 74 |decl, as|mspec, t|
|000014c0| 6f 70 5f 6c 65 76 65 6c | 29 0d 20 20 20 20 20 74 |op_level|). t|
|000014d0| 72 65 65 20 64 65 63 6c | 3b 0d 20 20 20 20 20 63 |ree decl|;. c|
|000014e0| 68 61 72 20 2a 61 73 6d | 73 70 65 63 3b 0d 20 20 |har *asm|spec;. |
|000014f0| 20 20 20 69 6e 74 20 74 | 6f 70 5f 6c 65 76 65 6c | int t|op_level|
|00001500| 3b 0d 7b 0d 20 20 72 65 | 67 69 73 74 65 72 20 63 |;.{. re|gister c|
|00001510| 68 61 72 20 2a 6e 61 6d | 65 20 3d 20 44 45 43 4c |har *nam|e = DECL|
|00001520| 5f 41 53 53 45 4d 42 4c | 45 52 5f 4e 41 4d 45 20 |_ASSEMBL|ER_NAME |
|00001530| 28 64 65 63 6c 29 3b 0d | 20 20 69 6e 74 20 72 65 |(decl);.| int re|
|00001540| 67 5f 6e 75 6d 62 65 72 | 20 3d 20 64 65 63 6f 64 |g_number| = decod|
|00001550| 65 5f 72 65 67 5f 6e 61 | 6d 65 20 28 61 73 6d 73 |e_reg_na|me (asms|
|00001560| 70 65 63 29 3b 0d 0d 20 | 20 69 66 20 28 72 65 67 |pec);.. | if (reg|
|00001570| 5f 6e 75 6d 62 65 72 20 | 3d 3d 20 2d 32 29 0d 20 |_number |== -2). |
|00001580| 20 20 20 7b 0d 20 20 20 | 20 20 20 6e 61 6d 65 20 | {. | name |
|00001590| 3d 20 28 63 68 61 72 20 | 2a 29 20 6f 62 73 74 61 |= (char |*) obsta|
|000015a0| 63 6b 5f 61 6c 6c 6f 63 | 20 28 73 61 76 65 61 62 |ck_alloc| (saveab|
|000015b0| 6c 65 5f 6f 62 73 74 61 | 63 6b 2c 0d 09 09 09 09 |le_obsta|ck,.....|
|000015c0| 20 20 20 20 20 73 74 72 | 6c 65 6e 20 28 61 73 6d | str|len (asm|
|000015d0| 73 70 65 63 29 20 2b 20 | 32 29 3b 0d 20 20 20 20 |spec) + |2);. |
|000015e0| 20 20 6e 61 6d 65 5b 30 | 5d 20 3d 20 27 2a 27 3b | name[0|] = '*';|
|000015f0| 0d 20 20 20 20 20 20 73 | 74 72 63 70 79 20 28 26 |. s|trcpy (&|
|00001600| 6e 61 6d 65 5b 31 5d 2c | 20 61 73 6d 73 70 65 63 |name[1],| asmspec|
|00001610| 29 3b 0d 20 20 20 20 7d | 0d 0d 20 20 2f 2a 20 46 |);. }|.. /* F|
|00001620| 6f 72 20 61 20 64 75 70 | 6c 69 63 61 74 65 20 64 |or a dup|licate d|
|00001630| 65 63 6c 61 72 61 74 69 | 6f 6e 2c 20 77 65 20 63 |eclarati|on, we c|
|00001640| 61 6e 20 62 65 20 63 61 | 6c 6c 65 64 20 74 77 69 |an be ca|lled twi|
|00001650| 63 65 20 6f 6e 20 74 68 | 65 0d 20 20 20 20 20 73 |ce on th|e. s|
|00001660| 61 6d 65 20 44 45 43 4c | 20 6e 6f 64 65 2e 20 20 |ame DECL| node. |
|00001670| 44 6f 6e 27 74 20 61 6c | 74 65 72 20 74 68 65 20 |Don't al|ter the |
|00001680| 52 54 4c 20 61 6c 72 65 | 61 64 79 20 6d 61 64 65 |RTL alre|ady made|
|00001690| 0d 20 20 20 20 20 75 6e | 6c 65 73 73 20 74 68 65 |. un|less the|
|000016a0| 20 6f 6c 64 20 6d 6f 64 | 65 20 69 73 20 77 72 6f | old mod|e is wro|
|000016b0| 6e 67 20 28 77 68 69 63 | 68 20 63 61 6e 20 68 61 |ng (whic|h can ha|
|000016c0| 70 70 65 6e 20 77 68 65 | 6e 0d 20 20 20 20 20 74 |ppen whe|n. t|
|000016d0| 68 65 20 70 72 65 76 69 | 6f 75 73 20 72 74 6c 20 |he previ|ous rtl |
|000016e0| 77 61 73 20 6d 61 64 65 | 20 77 68 65 6e 20 74 68 |was made| when th|
|000016f0| 65 20 74 79 70 65 20 77 | 61 73 20 69 6e 63 6f 6d |e type w|as incom|
|00001700| 70 6c 65 74 65 29 2e 20 | 20 2a 2f 0d 20 20 69 66 |plete). | */. if|
|00001710| 20 28 44 45 43 4c 5f 52 | 54 4c 20 28 64 65 63 6c | (DECL_R|TL (decl|
|00001720| 29 20 3d 3d 20 30 0d 20 | 20 20 20 20 20 7c 7c 20 |) == 0. | || |
|00001730| 47 45 54 5f 4d 4f 44 45 | 20 28 44 45 43 4c 5f 52 |GET_MODE| (DECL_R|
|00001740| 54 4c 20 28 64 65 63 6c | 29 29 20 21 3d 20 44 45 |TL (decl|)) != DE|
|00001750| 43 4c 5f 4d 4f 44 45 20 | 28 64 65 63 6c 29 29 0d |CL_MODE |(decl)).|
|00001760| 20 20 20 20 7b 0d 20 20 | 20 20 20 20 44 45 43 4c | {. | DECL|
|00001770| 5f 52 54 4c 20 28 64 65 | 63 6c 29 20 3d 20 30 3b |_RTL (de|cl) = 0;|
|00001780| 0d 0d 20 20 20 20 20 20 | 2f 2a 20 46 69 72 73 74 |.. |/* First|
|00001790| 20 64 65 74 65 63 74 20 | 65 72 72 6f 72 73 20 69 | detect |errors i|
|000017a0| 6e 20 64 65 63 6c 61 72 | 69 6e 67 20 67 6c 6f 62 |n declar|ing glob|
|000017b0| 61 6c 20 72 65 67 69 73 | 74 65 72 73 2e 20 20 2a |al regis|ters. *|
|000017c0| 2f 0d 20 20 20 20 20 20 | 69 66 20 28 54 52 45 45 |/. |if (TREE|
|000017d0| 5f 52 45 47 44 45 43 4c | 20 28 64 65 63 6c 29 20 |_REGDECL| (decl) |
|000017e0| 26 26 20 72 65 67 5f 6e | 75 6d 62 65 72 20 3d 3d |&& reg_n|umber ==|
|000017f0| 20 2d 31 29 0d 09 65 72 | 72 6f 72 5f 77 69 74 68 | -1)..er|ror_with|
|00001800| 5f 64 65 63 6c 20 28 64 | 65 63 6c 2c 0d 09 09 09 |_decl (d|ecl,....|
|00001810| 20 22 72 65 67 69 73 74 | 65 72 20 6e 61 6d 65 20 | "regist|er name |
|00001820| 6e 6f 74 20 73 70 65 63 | 69 66 69 65 64 20 66 6f |not spec|ified fo|
|00001830| 72 20 60 25 73 27 22 29 | 3b 0d 20 20 20 20 20 20 |r `%s'")|;. |
|00001840| 65 6c 73 65 20 69 66 20 | 28 54 52 45 45 5f 52 45 |else if |(TREE_RE|
|00001850| 47 44 45 43 4c 20 28 64 | 65 63 6c 29 20 26 26 20 |GDECL (d|ecl) && |
|00001860| 72 65 67 5f 6e 75 6d 62 | 65 72 20 3d 3d 20 2d 32 |reg_numb|er == -2|
|00001870| 29 0d 09 65 72 72 6f 72 | 5f 77 69 74 68 5f 64 65 |)..error|_with_de|
|00001880| 63 6c 20 28 64 65 63 6c | 2c 0d 09 09 09 20 22 69 |cl (decl|,.... "i|
|00001890| 6e 76 61 6c 69 64 20 72 | 65 67 69 73 74 65 72 20 |nvalid r|egister |
|000018a0| 6e 61 6d 65 20 66 6f 72 | 20 60 25 73 27 22 29 3b |name for| `%s'");|
|000018b0| 0d 20 20 20 20 20 20 65 | 6c 73 65 20 69 66 20 28 |. e|lse if (|
|000018c0| 72 65 67 5f 6e 75 6d 62 | 65 72 20 3e 3d 20 30 20 |reg_numb|er >= 0 |
|000018d0| 26 26 20 21 20 54 52 45 | 45 5f 52 45 47 44 45 43 |&& ! TRE|E_REGDEC|
|000018e0| 4c 20 28 64 65 63 6c 29 | 29 0d 09 65 72 72 6f 72 |L (decl)|)..error|
|000018f0| 5f 77 69 74 68 5f 64 65 | 63 6c 20 28 64 65 63 6c |_with_de|cl (decl|
|00001900| 2c 0d 09 09 09 20 22 72 | 65 67 69 73 74 65 72 20 |,.... "r|egister |
|00001910| 6e 61 6d 65 20 67 69 76 | 65 6e 20 66 6f 72 20 6e |name giv|en for n|
|00001920| 6f 6e 2d 72 65 67 69 73 | 74 65 72 20 76 61 72 69 |on-regis|ter vari|
|00001930| 61 62 6c 65 20 60 25 73 | 27 22 29 3b 0d 20 20 20 |able `%s|'");. |
|00001940| 20 20 20 65 6c 73 65 20 | 69 66 20 28 54 52 45 45 | else |if (TREE|
|00001950| 5f 52 45 47 44 45 43 4c | 20 28 64 65 63 6c 29 20 |_REGDECL| (decl) |
|00001960| 26 26 20 54 52 45 45 5f | 43 4f 44 45 20 28 64 65 |&& TREE_|CODE (de|
|00001970| 63 6c 29 20 3d 3d 20 46 | 55 4e 43 54 49 4f 4e 5f |cl) == F|UNCTION_|
|00001980| 44 45 43 4c 29 0d 09 65 | 72 72 6f 72 20 28 22 66 |DECL)..e|rror ("f|
|00001990| 75 6e 63 74 69 6f 6e 20 | 64 65 63 6c 61 72 65 64 |unction |declared|
|000019a0| 20 60 72 65 67 69 73 74 | 65 72 27 22 29 3b 0d 20 | `regist|er'");. |
|000019b0| 20 20 20 20 20 65 6c 73 | 65 20 69 66 20 28 54 52 | els|e if (TR|
|000019c0| 45 45 5f 52 45 47 44 45 | 43 4c 20 28 64 65 63 6c |EE_REGDE|CL (decl|
|000019d0| 29 20 26 26 20 54 59 50 | 45 5f 4d 4f 44 45 20 28 |) && TYP|E_MODE (|
|000019e0| 54 52 45 45 5f 54 59 50 | 45 20 28 64 65 63 6c 29 |TREE_TYP|E (decl)|
|000019f0| 29 20 3d 3d 20 42 4c 4b | 6d 6f 64 65 29 0d 09 65 |) == BLK|mode)..e|
|00001a00| 72 72 6f 72 5f 77 69 74 | 68 5f 64 65 63 6c 20 28 |rror_wit|h_decl (|
|00001a10| 64 65 63 6c 2c 20 22 64 | 61 74 61 20 74 79 70 65 |decl, "d|ata type|
|00001a20| 20 6f 66 20 60 25 73 27 | 20 69 73 6e 27 74 20 73 | of `%s'| isn't s|
|00001a30| 75 69 74 61 62 6c 65 20 | 66 6f 72 20 61 20 72 65 |uitable |for a re|
|00001a40| 67 69 73 74 65 72 22 29 | 3b 0d 20 20 20 20 20 20 |gister")|;. |
|00001a50| 2f 2a 20 4e 6f 77 20 68 | 61 6e 64 6c 65 20 70 72 |/* Now h|andle pr|
|00001a60| 6f 70 65 72 6c 79 20 64 | 65 63 6c 61 72 65 64 20 |operly d|eclared |
|00001a70| 73 74 61 74 69 63 20 72 | 65 67 69 73 74 65 72 20 |static r|egister |
|00001a80| 76 61 72 69 61 62 6c 65 | 73 2e 20 20 2a 2f 0d 20 |variable|s. */. |
|00001a90| 20 20 20 20 20 65 6c 73 | 65 20 69 66 20 28 54 52 | els|e if (TR|
|00001aa0| 45 45 5f 52 45 47 44 45 | 43 4c 20 28 64 65 63 6c |EE_REGDE|CL (decl|
|00001ab0| 29 29 0d 09 7b 0d 09 20 | 20 69 6e 74 20 6e 72 65 |))..{.. | int nre|
|00001ac0| 67 73 3b 0d 09 20 20 69 | 66 20 28 70 65 64 61 6e |gs;.. i|f (pedan|
|00001ad0| 74 69 63 29 0d 09 20 20 | 20 20 77 61 72 6e 69 6e |tic).. | warnin|
|00001ae0| 67 20 28 22 41 4e 53 49 | 20 43 20 66 6f 72 62 69 |g ("ANSI| C forbi|
|00001af0| 64 73 20 67 6c 6f 62 61 | 6c 20 72 65 67 69 73 74 |ds globa|l regist|
|00001b00| 65 72 20 76 61 72 69 61 | 62 6c 65 73 22 29 3b 0d |er varia|bles");.|
|00001b10| 09 20 20 69 66 20 28 44 | 45 43 4c 5f 49 4e 49 54 |. if (D|ECL_INIT|
|00001b20| 49 41 4c 20 28 64 65 63 | 6c 29 20 21 3d 20 30 29 |IAL (dec|l) != 0)|
|00001b30| 0d 09 20 20 20 20 7b 0d | 09 20 20 20 20 20 20 44 |.. {.|. D|
|00001b40| 45 43 4c 5f 49 4e 49 54 | 49 41 4c 20 28 64 65 63 |ECL_INIT|IAL (dec|
|00001b50| 6c 29 20 3d 20 30 3b 0d | 09 20 20 20 20 20 20 65 |l) = 0;.|. e|
|00001b60| 72 72 6f 72 20 28 22 67 | 6c 6f 62 61 6c 20 72 65 |rror ("g|lobal re|
|00001b70| 67 69 73 74 65 72 20 76 | 61 72 69 61 62 6c 65 20 |gister v|ariable |
|00001b80| 68 61 73 20 69 6e 69 74 | 69 61 6c 20 76 61 6c 75 |has init|ial valu|
|00001b90| 65 22 29 3b 0d 09 20 20 | 20 20 7d 0d 09 20 20 69 |e");.. | }.. i|
|00001ba0| 66 20 28 66 69 78 65 64 | 5f 72 65 67 73 5b 72 65 |f (fixed|_regs[re|
|00001bb0| 67 5f 6e 75 6d 62 65 72 | 5d 20 3d 3d 20 30 0d 09 |g_number|] == 0..|
|00001bc0| 20 20 20 20 20 20 26 26 | 20 66 75 6e 63 74 69 6f | &&| functio|
|00001bd0| 6e 5f 64 65 66 69 6e 65 | 64 20 26 26 20 74 6f 70 |n_define|d && top|
|00001be0| 5f 6c 65 76 65 6c 29 0d | 09 20 20 20 20 65 72 72 |_level).|. err|
|00001bf0| 6f 72 20 28 22 67 6c 6f | 62 61 6c 20 72 65 67 69 |or ("glo|bal regi|
|00001c00| 73 74 65 72 20 76 61 72 | 69 61 62 6c 65 20 66 6f |ster var|iable fo|
|00001c10| 6c 6c 6f 77 73 20 61 20 | 66 75 6e 63 74 69 6f 6e |llows a |function|
|00001c20| 20 64 65 66 69 6e 69 74 | 69 6f 6e 22 29 3b 0d 09 | definit|ion");..|
|00001c30| 20 20 44 45 43 4c 5f 52 | 54 4c 20 28 64 65 63 6c | DECL_R|TL (decl|
|00001c40| 29 20 3d 20 67 65 6e 5f | 72 74 78 20 28 52 45 47 |) = gen_|rtx (REG|
|00001c50| 2c 20 44 45 43 4c 5f 4d | 4f 44 45 20 28 64 65 63 |, DECL_M|ODE (dec|
|00001c60| 6c 29 2c 20 72 65 67 5f | 6e 75 6d 62 65 72 29 3b |l), reg_|number);|
|00001c70| 0d 09 20 20 69 66 20 28 | 74 6f 70 5f 6c 65 76 65 |.. if (|top_leve|
|00001c80| 6c 29 0d 09 20 20 20 20 | 7b 0d 09 20 20 20 20 20 |l).. |{.. |
|00001c90| 20 2f 2a 20 4d 61 6b 65 | 20 74 68 69 73 20 72 65 | /* Make| this re|
|00001ca0| 67 69 73 74 65 72 20 66 | 69 78 65 64 2c 20 73 6f |gister f|ixed, so|
|00001cb0| 20 6e 6f 74 20 75 73 61 | 62 6c 65 20 66 6f 72 20 | not usa|ble for |
|00001cc0| 61 6e 79 74 68 69 6e 67 | 20 65 6c 73 65 2e 20 20 |anything| else. |
|00001cd0| 2a 2f 0d 09 20 20 20 20 | 20 20 6e 72 65 67 73 20 |*/.. | nregs |
|00001ce0| 3d 20 48 41 52 44 5f 52 | 45 47 4e 4f 5f 4e 52 45 |= HARD_R|EGNO_NRE|
|00001cf0| 47 53 20 28 72 65 67 5f | 6e 75 6d 62 65 72 2c 20 |GS (reg_|number, |
|00001d00| 44 45 43 4c 5f 4d 4f 44 | 45 20 28 64 65 63 6c 29 |DECL_MOD|E (decl)|
|00001d10| 29 3b 0d 09 20 20 20 20 | 20 20 77 68 69 6c 65 20 |);.. | while |
|00001d20| 28 6e 72 65 67 73 20 3e | 20 30 29 0d 09 09 67 6c |(nregs >| 0)...gl|
|00001d30| 6f 62 61 6c 5f 72 65 67 | 73 5b 72 65 67 5f 6e 75 |obal_reg|s[reg_nu|
|00001d40| 6d 62 65 72 20 2b 20 2d | 2d 6e 72 65 67 73 5d 20 |mber + -|-nregs] |
|00001d50| 3d 20 31 3b 0d 09 20 20 | 20 20 20 20 69 6e 69 74 |= 1;.. | init|
|00001d60| 5f 72 65 67 5f 73 65 74 | 73 5f 31 20 28 29 3b 0d |_reg_set|s_1 ();.|
|00001d70| 09 20 20 20 20 7d 0d 09 | 7d 0d 0d 20 20 20 20 20 |. }..|}.. |
|00001d80| 20 2f 2a 20 4e 6f 77 20 | 68 61 6e 64 6c 65 20 6f | /* Now |handle o|
|00001d90| 72 64 69 6e 61 72 79 20 | 73 74 61 74 69 63 20 76 |rdinary |static v|
|00001da0| 61 72 69 61 62 6c 65 73 | 20 61 6e 64 20 66 75 6e |ariables| and fun|
|00001db0| 63 74 69 6f 6e 73 20 28 | 69 6e 20 6d 65 6d 6f 72 |ctions (|in memor|
|00001dc0| 79 29 2e 0d 09 20 41 6c | 73 6f 20 68 61 6e 64 6c |y)... Al|so handl|
|00001dd0| 65 20 76 61 72 73 20 64 | 65 63 6c 61 72 65 64 20 |e vars d|eclared |
|00001de0| 72 65 67 69 73 74 65 72 | 20 69 6e 76 61 6c 69 64 |register| invalid|
|00001df0| 6c 79 2e 20 20 2a 2f 0d | 20 20 20 20 20 20 69 66 |ly. */.| if|
|00001e00| 20 28 44 45 43 4c 5f 52 | 54 4c 20 28 64 65 63 6c | (DECL_R|TL (decl|
|00001e10| 29 20 3d 3d 20 30 29 0d | 09 7b 0d 09 20 20 2f 2a |) == 0).|.{.. /*|
|00001e20| 20 43 61 6e 27 74 20 75 | 73 65 20 6a 75 73 74 20 | Can't u|se just |
|00001e30| 74 68 65 20 76 61 72 69 | 61 62 6c 65 27 73 20 6f |the vari|able's o|
|00001e40| 77 6e 20 6e 61 6d 65 20 | 66 6f 72 20 61 20 76 61 |wn name |for a va|
|00001e50| 72 69 61 62 6c 65 0d 09 | 20 20 20 20 20 77 68 6f |riable..| who|
|00001e60| 73 65 20 73 63 6f 70 65 | 20 69 73 20 6c 65 73 73 |se scope| is less|
|00001e70| 20 74 68 61 6e 20 74 68 | 65 20 77 68 6f 6c 65 20 | than th|e whole |
|00001e80| 66 69 6c 65 2e 0d 09 20 | 20 20 20 20 43 6f 6e 63 |file... | Conc|
|00001e90| 61 74 65 6e 61 74 65 20 | 61 20 64 69 73 74 69 6e |atenate |a distin|
|00001ea0| 67 75 69 73 68 69 6e 67 | 20 6e 75 6d 62 65 72 2e |guishing| number.|
|00001eb0| 20 20 2a 2f 0d 09 20 20 | 69 66 20 28 21 74 6f 70 | */.. |if (!top|
|00001ec0| 5f 6c 65 76 65 6c 20 26 | 26 20 21 54 52 45 45 5f |_level &|& !TREE_|
|00001ed0| 45 58 54 45 52 4e 41 4c | 20 28 64 65 63 6c 29 20 |EXTERNAL| (decl) |
|00001ee0| 26 26 20 61 73 6d 73 70 | 65 63 20 3d 3d 20 30 29 |&& asmsp|ec == 0)|
|00001ef0| 0d 09 20 20 20 20 7b 0d | 09 20 20 20 20 20 20 63 |.. {.|. c|
|00001f00| 68 61 72 20 2a 6c 61 62 | 65 6c 3b 0d 0d 09 20 20 |har *lab|el;... |
|00001f10| 20 20 20 20 41 53 4d 5f | 46 4f 52 4d 41 54 5f 50 | ASM_|FORMAT_P|
|00001f20| 52 49 56 41 54 45 5f 4e | 41 4d 45 20 28 6c 61 62 |RIVATE_N|AME (lab|
|00001f30| 65 6c 2c 20 6e 61 6d 65 | 2c 20 76 61 72 5f 6c 61 |el, name|, var_la|
|00001f40| 62 65 6c 6e 6f 29 3b 0d | 09 20 20 20 20 20 20 6e |belno);.|. n|
|00001f50| 61 6d 65 20 3d 20 6f 62 | 73 74 61 63 6b 5f 63 6f |ame = ob|stack_co|
|00001f60| 70 79 30 20 28 73 61 76 | 65 61 62 6c 65 5f 6f 62 |py0 (sav|eable_ob|
|00001f70| 73 74 61 63 6b 2c 20 6c | 61 62 65 6c 2c 20 73 74 |stack, l|abel, st|
|00001f80| 72 6c 65 6e 20 28 6c 61 | 62 65 6c 29 29 3b 0d 09 |rlen (la|bel));..|
|00001f90| 20 20 20 20 20 20 76 61 | 72 5f 6c 61 62 65 6c 6e | va|r_labeln|
|00001fa0| 6f 2b 2b 3b 0d 09 20 20 | 20 20 7d 0d 0d 23 69 66 |o++;.. | }..#if|
|00001fb0| 64 65 66 20 41 50 50 4c | 45 5f 43 0d 09 20 20 2f |def APPL|E_C.. /|
|00001fc0| 2a 20 54 72 61 6e 73 66 | 6f 72 6d 20 61 20 70 61 |* Transf|orm a pa|
|00001fd0| 73 63 61 6c 20 6e 61 6d | 65 20 74 6f 20 61 6c 6c |scal nam|e to all|
|00001fe0| 2d 75 70 70 65 72 2d 63 | 61 73 65 2e 20 2a 2f 0d |-upper-c|ase. */.|
|00001ff0| 09 20 20 69 66 20 28 54 | 52 45 45 5f 50 41 53 43 |. if (T|REE_PASC|
|00002000| 41 4c 20 28 64 65 63 6c | 29 29 0d 09 20 20 20 20 |AL (decl|)).. |
|00002010| 73 74 72 69 6e 67 5f 75 | 70 63 61 73 65 20 28 6e |string_u|pcase (n|
|00002020| 61 6d 65 29 3b 0d 09 20 | 20 2f 2a 20 52 65 70 6c |ame);.. | /* Repl|
|00002030| 61 63 65 20 64 69 72 65 | 63 74 20 66 75 6e 63 74 |ace dire|ct funct|
|00002040| 69 6f 6e 20 6e 61 6d 65 | 20 77 69 74 68 20 69 74 |ion name| with it|
|00002050| 73 20 64 65 66 69 6e 69 | 74 69 6f 6e 20 28 21 29 |s defini|tion (!)|
|00002060| 20 2a 2f 0d 09 20 20 69 | 66 20 28 54 52 45 45 5f | */.. i|f (TREE_|
|00002070| 44 49 52 45 43 54 20 28 | 64 65 63 6c 29 20 26 26 |DIRECT (|decl) &&|
|00002080| 20 44 45 43 4c 5f 49 4e | 49 54 49 41 4c 20 28 64 | DECL_IN|ITIAL (d|
|00002090| 65 63 6c 29 29 0d 09 20 | 20 20 20 6e 61 6d 65 20 |ecl)).. | name |
|000020a0| 3d 20 62 75 69 6c 64 5f | 64 69 72 65 63 74 5f 64 |= build_|direct_d|
|000020b0| 65 66 6e 20 28 6e 61 6d | 65 2c 20 44 45 43 4c 5f |efn (nam|e, DECL_|
|000020c0| 49 4e 49 54 49 41 4c 20 | 28 64 65 63 6c 29 29 3b |INITIAL |(decl));|
|000020d0| 0d 23 65 6e 64 69 66 20 | 2f 2a 20 41 50 50 4c 45 |.#endif |/* APPLE|
|000020e0| 5f 43 20 2a 2f 0d 23 69 | 66 64 65 66 20 41 50 50 |_C */.#i|fdef APP|
|000020f0| 4c 45 5f 48 41 58 0d 09 | 20 20 2f 2a 20 4d 61 79 |LE_HAX..| /* May|
|00002100| 62 65 20 69 64 65 6e 74 | 69 66 79 20 64 61 74 61 |be ident|ify data|
|00002110| 20 76 73 20 63 6f 64 65 | 20 6e 61 6d 65 73 20 77 | vs code| names w|
|00002120| 69 74 68 20 61 20 6c 65 | 61 64 69 6e 67 20 63 68 |ith a le|ading ch|
|00002130| 61 72 61 63 74 65 72 2e | 20 2a 2f 0d 23 69 66 64 |aracter.| */.#ifd|
|00002140| 65 66 20 41 53 4d 5f 46 | 55 4e 43 54 49 4f 4e 49 |ef ASM_F|UNCTIONI|
|00002150| 46 59 5f 4e 41 4d 45 0d | 09 20 20 69 66 20 28 54 |FY_NAME.|. if (T|
|00002160| 52 45 45 5f 43 4f 44 45 | 20 28 64 65 63 6c 29 20 |REE_CODE| (decl) |
|00002170| 3d 3d 20 46 55 4e 43 54 | 49 4f 4e 5f 44 45 43 4c |== FUNCT|ION_DECL|
|00002180| 29 0d 09 20 20 20 20 41 | 53 4d 5f 46 55 4e 43 54 |).. A|SM_FUNCT|
|00002190| 49 4f 4e 49 46 59 5f 4e | 41 4d 45 20 28 6e 61 6d |IONIFY_N|AME (nam|
|000021a0| 65 29 3b 0d 23 65 6e 64 | 69 66 0d 23 69 66 64 65 |e);.#end|if.#ifde|
|000021b0| 66 20 41 53 4d 5f 44 41 | 54 49 46 59 5f 4e 41 4d |f ASM_DA|TIFY_NAM|
|000021c0| 45 0d 09 20 20 69 66 20 | 28 54 52 45 45 5f 43 4f |E.. if |(TREE_CO|
|000021d0| 44 45 20 28 64 65 63 6c | 29 20 3d 3d 20 56 41 52 |DE (decl|) == VAR|
|000021e0| 5f 44 45 43 4c 29 0d 09 | 20 20 20 20 41 53 4d 5f |_DECL)..| ASM_|
|000021f0| 44 41 54 49 46 59 5f 4e | 41 4d 45 20 28 6e 61 6d |DATIFY_N|AME (nam|
|00002200| 65 29 3b 0d 23 65 6e 64 | 69 66 0d 23 65 6e 64 69 |e);.#end|if.#endi|
|00002210| 66 20 2f 2a 20 41 50 50 | 4c 45 5f 48 41 58 20 2a |f /* APP|LE_HAX *|
|00002220| 2f 0d 0d 09 20 20 44 45 | 43 4c 5f 52 54 4c 20 28 |/... DE|CL_RTL (|
|00002230| 64 65 63 6c 29 20 3d 20 | 67 65 6e 5f 72 74 78 20 |decl) = |gen_rtx |
|00002240| 28 4d 45 4d 2c 20 44 45 | 43 4c 5f 4d 4f 44 45 20 |(MEM, DE|CL_MODE |
|00002250| 28 64 65 63 6c 29 2c 0d | 09 09 09 09 20 20 20 20 |(decl),.|.... |
|00002260| 20 67 65 6e 5f 72 74 78 | 20 28 53 59 4d 42 4f 4c | gen_rtx| (SYMBOL|
|00002270| 5f 52 45 46 2c 20 50 6d | 6f 64 65 2c 20 6e 61 6d |_REF, Pm|ode, nam|
|00002280| 65 29 29 3b 0d 09 20 20 | 69 66 20 28 54 52 45 45 |e));.. |if (TREE|
|00002290| 5f 56 4f 4c 41 54 49 4c | 45 20 28 64 65 63 6c 29 |_VOLATIL|E (decl)|
|000022a0| 29 0d 09 20 20 20 20 4d | 45 4d 5f 56 4f 4c 41 54 |).. M|EM_VOLAT|
|000022b0| 49 4c 45 5f 50 20 28 44 | 45 43 4c 5f 52 54 4c 20 |ILE_P (D|ECL_RTL |
|000022c0| 28 64 65 63 6c 29 29 20 | 3d 20 31 3b 0d 09 20 20 |(decl)) |= 1;.. |
|000022d0| 69 66 20 28 54 52 45 45 | 5f 52 45 41 44 4f 4e 4c |if (TREE|_READONL|
|000022e0| 59 20 28 64 65 63 6c 29 | 29 0d 09 20 20 20 20 52 |Y (decl)|).. R|
|000022f0| 54 58 5f 55 4e 43 48 41 | 4e 47 49 4e 47 5f 50 20 |TX_UNCHA|NGING_P |
|00002300| 28 44 45 43 4c 5f 52 54 | 4c 20 28 64 65 63 6c 29 |(DECL_RT|L (decl)|
|00002310| 29 20 3d 20 31 3b 0d 09 | 20 20 4d 45 4d 5f 49 4e |) = 1;..| MEM_IN|
|00002320| 5f 53 54 52 55 43 54 5f | 50 20 28 44 45 43 4c 5f |_STRUCT_|P (DECL_|
|00002330| 52 54 4c 20 28 64 65 63 | 6c 29 29 0d 09 20 20 20 |RTL (dec|l)).. |
|00002340| 20 3d 20 28 54 52 45 45 | 5f 43 4f 44 45 20 28 54 | = (TREE|_CODE (T|
|00002350| 52 45 45 5f 54 59 50 45 | 20 28 64 65 63 6c 29 29 |REE_TYPE| (decl))|
|00002360| 20 3d 3d 20 41 52 52 41 | 59 5f 54 59 50 45 0d 09 | == ARRA|Y_TYPE..|
|00002370| 20 20 20 20 20 20 20 7c | 7c 20 54 52 45 45 5f 43 | ||| TREE_C|
|00002380| 4f 44 45 20 28 54 52 45 | 45 5f 54 59 50 45 20 28 |ODE (TRE|E_TYPE (|
|00002390| 64 65 63 6c 29 29 20 3d | 3d 20 52 45 43 4f 52 44 |decl)) =|= RECORD|
|000023a0| 5f 54 59 50 45 0d 09 20 | 20 20 20 20 20 20 7c 7c |_TYPE.. | |||
|000023b0| 20 54 52 45 45 5f 43 4f | 44 45 20 28 54 52 45 45 | TREE_CO|DE (TREE|
|000023c0| 5f 54 59 50 45 20 28 64 | 65 63 6c 29 29 20 3d 3d |_TYPE (d|ecl)) ==|
|000023d0| 20 55 4e 49 4f 4e 5f 54 | 59 50 45 29 3b 0d 09 7d | UNION_T|YPE);..}|
|000023e0| 0d 20 20 20 20 7d 0d 7d | 0d 0c 0d 2f 2a 20 4f 75 |. }.}|.../* Ou|
|000023f0| 74 70 75 74 20 61 20 73 | 74 72 69 6e 67 20 6f 66 |tput a s|tring of|
|00002400| 20 6c 69 74 65 72 61 6c | 20 61 73 73 65 6d 62 6c | literal| assembl|
|00002410| 65 72 20 63 6f 64 65 0d | 20 20 20 66 6f 72 20 61 |er code.| for a|
|00002420| 6e 20 60 61 73 6d 27 20 | 6b 65 79 77 6f 72 64 20 |n `asm' |keyword |
|00002430| 75 73 65 64 20 62 65 74 | 77 65 65 6e 20 66 75 6e |used bet|ween fun|
|00002440| 63 74 69 6f 6e 73 2e 20 | 20 2a 2f 0d 0d 76 6f 69 |ctions. | */..voi|
|00002450| 64 0d 61 73 73 65 6d 62 | 6c 65 5f 61 73 6d 20 28 |d.assemb|le_asm (|
|00002460| 73 74 72 69 6e 67 29 0d | 20 20 20 20 20 74 72 65 |string).| tre|
|00002470| 65 20 73 74 72 69 6e 67 | 3b 0d 7b 0d 20 20 61 70 |e string|;.{. ap|
|00002480| 70 5f 65 6e 61 62 6c 65 | 20 28 29 3b 0d 0d 20 20 |p_enable| ();.. |
|00002490| 66 70 72 69 6e 74 66 20 | 28 61 73 6d 5f 6f 75 74 |fprintf |(asm_out|
|000024a0| 5f 66 69 6c 65 2c 20 22 | 5c 74 25 73 5c 6e 22 2c |_file, "|\t%s\n",|
|000024b0| 20 54 52 45 45 5f 53 54 | 52 49 4e 47 5f 50 4f 49 | TREE_ST|RING_POI|
|000024c0| 4e 54 45 52 20 28 73 74 | 72 69 6e 67 29 29 3b 0d |NTER (st|ring));.|
|000024d0| 7d 0d 0d 2f 2a 20 4f 75 | 74 70 75 74 20 61 73 73 |}../* Ou|tput ass|
|000024e0| 65 6d 62 6c 65 72 20 63 | 6f 64 65 20 61 73 73 6f |embler c|ode asso|
|000024f0| 63 69 61 74 65 64 20 77 | 69 74 68 20 64 65 66 69 |ciated w|ith defi|
|00002500| 6e 69 6e 67 20 74 68 65 | 20 6e 61 6d 65 20 6f 66 |ning the| name of|
|00002510| 20 61 20 66 75 6e 63 74 | 69 6f 6e 0d 20 20 20 61 | a funct|ion. a|
|00002520| 73 20 64 65 73 63 72 69 | 62 65 64 20 62 79 20 44 |s descri|bed by D|
|00002530| 45 43 4c 2e 20 20 2a 2f | 0d 0d 76 6f 69 64 0d 61 |ECL. */|..void.a|
|00002540| 73 73 65 6d 62 6c 65 5f | 66 75 6e 63 74 69 6f 6e |ssemble_|function|
|00002550| 20 28 64 65 63 6c 29 0d | 20 20 20 20 20 74 72 65 | (decl).| tre|
|00002560| 65 20 64 65 63 6c 3b 0d | 7b 0d 20 20 72 74 78 20 |e decl;.|{. rtx |
|00002570| 78 2c 20 6e 3b 0d 20 20 | 63 68 61 72 20 2a 66 6e |x, n;. |char *fn|
|00002580| 6e 61 6d 65 3b 0d 20 20 | 69 6e 74 20 61 6c 69 67 |name;. |int alig|
|00002590| 6e 3b 0d 0d 20 20 2f 2a | 20 47 65 74 20 74 68 65 |n;.. /*| Get the|
|000025a0| 20 66 75 6e 63 74 69 6f | 6e 27 73 20 6e 61 6d 65 | functio|n's name|
|000025b0| 2c 20 61 73 20 64 65 73 | 63 72 69 62 65 64 20 62 |, as des|cribed b|
|000025c0| 79 20 69 74 73 20 52 54 | 4c 2e 0d 20 20 20 20 20 |y its RT|L.. |
|000025d0| 54 68 69 73 20 6d 61 79 | 20 62 65 20 64 69 66 66 |This may| be diff|
|000025e0| 65 72 65 6e 74 20 66 72 | 6f 6d 20 74 68 65 20 44 |erent fr|om the D|
|000025f0| 45 43 4c 5f 4e 41 4d 45 | 20 6e 61 6d 65 20 75 73 |ECL_NAME| name us|
|00002600| 65 64 20 69 6e 20 74 68 | 65 20 73 6f 75 72 63 65 |ed in th|e source|
|00002610| 20 66 69 6c 65 2e 20 20 | 2a 2f 0d 0d 20 20 78 20 | file. |*/.. x |
|00002620| 3d 20 44 45 43 4c 5f 52 | 54 4c 20 28 64 65 63 6c |= DECL_R|TL (decl|
|00002630| 29 3b 0d 20 20 69 66 20 | 28 47 45 54 5f 43 4f 44 |);. if |(GET_COD|
|00002640| 45 20 28 78 29 20 21 3d | 20 4d 45 4d 29 0d 20 20 |E (x) !=| MEM). |
|00002650| 20 20 61 62 6f 72 74 20 | 28 29 3b 0d 20 20 6e 20 | abort |();. n |
|00002660| 3d 20 58 45 58 50 20 28 | 78 2c 20 30 29 3b 0d 20 |= XEXP (|x, 0);. |
|00002670| 20 69 66 20 28 47 45 54 | 5f 43 4f 44 45 20 28 6e | if (GET|_CODE (n|
|00002680| 29 20 21 3d 20 53 59 4d | 42 4f 4c 5f 52 45 46 29 |) != SYM|BOL_REF)|
|00002690| 0d 20 20 20 20 61 62 6f | 72 74 20 28 29 3b 0d 20 |. abo|rt ();. |
|000026a0| 20 66 6e 6e 61 6d 65 20 | 3d 20 58 53 54 52 20 28 | fnname |= XSTR (|
|000026b0| 6e 2c 20 30 29 3b 0d 0d | 23 69 66 64 65 66 20 41 |n, 0);..|#ifdef A|
|000026c0| 50 50 4c 45 5f 48 41 58 | 0d 20 20 64 65 66 69 6e |PPLE_HAX|. defin|
|000026d0| 65 5f 61 5f 66 75 6e 63 | 74 69 6f 6e 20 28 66 6e |e_a_func|tion (fn|
|000026e0| 6e 61 6d 65 29 3b 0d 20 | 20 2f 2a 20 44 6f 20 61 |name);. | /* Do a|
|000026f0| 6e 79 20 6d 61 63 68 69 | 6e 65 2f 73 79 73 74 65 |ny machi|ne/syste|
|00002700| 6d 20 64 65 70 65 6e 64 | 65 6e 74 20 70 72 6f 63 |m depend|ent proc|
|00002710| 65 73 73 69 6e 67 20 6f | 66 20 74 68 65 20 66 75 |essing o|f the fu|
|00002720| 6e 63 74 69 6f 6e 20 6e | 61 6d 65 20 74 68 61 74 |nction n|ame that|
|00002730| 0d 20 20 20 20 20 6d 75 | 73 74 20 62 65 20 64 6f |. mu|st be do|
|00002740| 6e 65 20 62 65 66 6f 72 | 65 20 61 6e 79 74 68 69 |ne befor|e anythi|
|00002750| 6e 67 20 65 6c 73 65 20 | 69 73 20 6f 75 74 70 75 |ng else |is outpu|
|00002760| 74 2e 20 2a 2f 0d 23 69 | 66 64 65 66 20 41 53 4d |t. */.#i|fdef ASM|
|00002770| 5f 50 52 45 44 45 43 4c | 41 52 45 5f 46 55 4e 43 |_PREDECL|ARE_FUNC|
|00002780| 54 49 4f 4e 5f 4e 41 4d | 45 0d 20 20 41 53 4d 5f |TION_NAM|E. ASM_|
|00002790| 50 52 45 44 45 43 4c 41 | 52 45 5f 46 55 4e 43 54 |PREDECLA|RE_FUNCT|
|000027a0| 49 4f 4e 5f 4e 41 4d 45 | 20 28 61 73 6d 5f 6f 75 |ION_NAME| (asm_ou|
|000027b0| 74 5f 66 69 6c 65 2c 20 | 66 6e 6e 61 6d 65 2c 20 |t_file, |fnname, |
|000027c0| 63 75 72 72 65 6e 74 5f | 66 75 6e 63 74 69 6f 6e |current_|function|
|000027d0| 5f 64 65 63 6c 29 3b 0d | 23 65 6e 64 69 66 0d 23 |_decl);.|#endif.#|
|000027e0| 65 6e 64 69 66 20 2f 2a | 20 41 50 50 4c 45 5f 48 |endif /*| APPLE_H|
|000027f0| 41 58 20 2a 2f 0d 0d 20 | 20 2f 2a 20 54 68 65 20 |AX */.. | /* The |
|00002800| 66 6f 6c 6c 6f 77 69 6e | 67 20 63 6f 64 65 20 64 |followin|g code d|
|00002810| 6f 65 73 20 6e 6f 74 20 | 6e 65 65 64 20 70 72 65 |oes not |need pre|
|00002820| 70 72 6f 63 65 73 73 69 | 6e 67 20 69 6e 20 74 68 |processi|ng in th|
|00002830| 65 20 61 73 73 65 6d 62 | 6c 65 72 2e 20 20 2a 2f |e assemb|ler. */|
|00002840| 0d 0d 20 20 61 70 70 5f | 64 69 73 61 62 6c 65 20 |.. app_|disable |
|00002850| 28 29 3b 0d 0d 20 20 74 | 65 78 74 5f 73 65 63 74 |();.. t|ext_sect|
|00002860| 69 6f 6e 20 28 29 3b 0d | 0d 23 69 66 64 65 66 20 |ion ();.|.#ifdef |
|00002870| 53 44 42 5f 44 45 42 55 | 47 47 49 4e 47 5f 49 4e |SDB_DEBU|GGING_IN|
|00002880| 46 4f 0d 20 20 2f 2a 20 | 4d 61 6b 65 20 73 75 72 |FO. /* |Make sur|
|00002890| 65 20 74 79 70 65 73 20 | 61 72 65 20 64 65 66 69 |e types |are defi|
|000028a0| 6e 65 64 20 66 6f 72 20 | 64 65 62 75 67 67 65 72 |ned for |debugger|
|000028b0| 20 62 65 66 6f 72 65 20 | 66 63 6e 20 6e 61 6d 65 | before |fcn name|
|000028c0| 20 69 73 20 64 65 66 69 | 6e 65 64 2e 20 20 2a 2f | is defi|ned. */|
|000028d0| 0d 20 20 69 66 20 28 77 | 72 69 74 65 5f 73 79 6d |. if (w|rite_sym|
|000028e0| 62 6f 6c 73 20 3d 3d 20 | 53 44 42 5f 44 45 42 55 |bols == |SDB_DEBU|
|000028f0| 47 29 0d 20 20 20 20 73 | 64 62 6f 75 74 5f 74 61 |G). s|dbout_ta|
|00002900| 67 73 20 28 67 65 74 74 | 61 67 73 20 28 29 29 3b |gs (gett|ags ());|
|00002910| 0d 23 65 6e 64 69 66 0d | 0d 20 20 2f 2a 20 54 65 |.#endif.|. /* Te|
|00002920| 6c 6c 20 61 73 73 65 6d | 62 6c 65 72 20 74 6f 20 |ll assem|bler to |
|00002930| 6d 6f 76 65 20 74 6f 20 | 74 61 72 67 65 74 20 6d |move to |target m|
|00002940| 61 63 68 69 6e 65 27 73 | 20 61 6c 69 67 6e 6d 65 |achine's| alignme|
|00002950| 6e 74 20 66 6f 72 20 66 | 75 6e 63 74 69 6f 6e 73 |nt for f|unctions|
|00002960| 2e 20 20 2a 2f 0d 0d 20 | 20 61 6c 69 67 6e 20 3d |. */.. | align =|
|00002970| 20 66 6c 6f 6f 72 5f 6c | 6f 67 32 20 28 46 55 4e | floor_l|og2 (FUN|
|00002980| 43 54 49 4f 4e 5f 42 4f | 55 4e 44 41 52 59 20 2f |CTION_BO|UNDARY /|
|00002990| 20 42 49 54 53 5f 50 45 | 52 5f 55 4e 49 54 29 3b | BITS_PE|R_UNIT);|
|000029a0| 0d 20 20 69 66 20 28 61 | 6c 69 67 6e 20 3e 20 30 |. if (a|lign > 0|
|000029b0| 29 0d 20 20 20 20 41 53 | 4d 5f 4f 55 54 50 55 54 |). AS|M_OUTPUT|
|000029c0| 5f 41 4c 49 47 4e 20 28 | 61 73 6d 5f 6f 75 74 5f |_ALIGN (|asm_out_|
|000029d0| 66 69 6c 65 2c 20 61 6c | 69 67 6e 29 3b 0d 0d 23 |file, al|ign);..#|
|000029e0| 69 66 64 65 66 20 53 44 | 42 5f 44 45 42 55 47 47 |ifdef SD|B_DEBUGG|
|000029f0| 49 4e 47 5f 49 4e 46 4f | 0d 20 20 2f 2a 20 4f 75 |ING_INFO|. /* Ou|
|00002a00| 74 70 75 74 20 53 44 42 | 20 64 65 66 69 6e 69 74 |tput SDB| definit|
|00002a10| 69 6f 6e 20 6f 66 20 74 | 68 65 20 66 75 6e 63 74 |ion of t|he funct|
|00002a20| 69 6f 6e 2e 20 20 2a 2f | 0d 20 20 69 66 20 28 77 |ion. */|. if (w|
|00002a30| 72 69 74 65 5f 73 79 6d | 62 6f 6c 73 20 3d 3d 20 |rite_sym|bols == |
|00002a40| 53 44 42 5f 44 45 42 55 | 47 29 0d 20 20 20 20 73 |SDB_DEBU|G). s|
|00002a50| 64 62 6f 75 74 5f 6d 61 | 72 6b 5f 62 65 67 69 6e |dbout_ma|rk_begin|
|00002a60| 5f 66 75 6e 63 74 69 6f | 6e 20 28 29 3b 0d 23 65 |_functio|n ();.#e|
|00002a70| 6e 64 69 66 0d 0d 20 20 | 2f 2a 20 4d 61 6b 65 20 |ndif.. |/* Make |
|00002a80| 66 75 6e 63 74 69 6f 6e | 20 6e 61 6d 65 20 61 63 |function| name ac|
|00002a90| 63 65 73 73 69 62 6c 65 | 20 66 72 6f 6d 20 6f 74 |cessible| from ot|
|00002aa0| 68 65 72 20 66 69 6c 65 | 73 2c 20 69 66 20 61 70 |her file|s, if ap|
|00002ab0| 70 72 6f 70 72 69 61 74 | 65 2e 20 20 2a 2f 0d 0d |propriat|e. */..|
|00002ac0| 20 20 69 66 20 28 54 52 | 45 45 5f 50 55 42 4c 49 | if (TR|EE_PUBLI|
|00002ad0| 43 20 28 64 65 63 6c 29 | 29 0d 20 20 20 20 41 53 |C (decl)|). AS|
|00002ae0| 4d 5f 47 4c 4f 42 41 4c | 49 5a 45 5f 4c 41 42 45 |M_GLOBAL|IZE_LABE|
|00002af0| 4c 20 28 61 73 6d 5f 6f | 75 74 5f 66 69 6c 65 2c |L (asm_o|ut_file,|
|00002b00| 20 66 6e 6e 61 6d 65 29 | 3b 0d 0d 20 20 2f 2a 20 | fnname)|;.. /* |
|00002b10| 44 6f 20 61 6e 79 20 6d | 61 63 68 69 6e 65 2f 73 |Do any m|achine/s|
|00002b20| 79 73 74 65 6d 20 64 65 | 70 65 6e 64 65 6e 74 20 |ystem de|pendent |
|00002b30| 70 72 6f 63 65 73 73 69 | 6e 67 20 6f 66 20 74 68 |processi|ng of th|
|00002b40| 65 20 66 75 6e 63 74 69 | 6f 6e 20 6e 61 6d 65 20 |e functi|on name |
|00002b50| 2a 2f 0d 23 69 66 64 65 | 66 20 41 53 4d 5f 44 45 |*/.#ifde|f ASM_DE|
|00002b60| 43 4c 41 52 45 5f 46 55 | 4e 43 54 49 4f 4e 5f 4e |CLARE_FU|NCTION_N|
|00002b70| 41 4d 45 0d 20 20 41 53 | 4d 5f 44 45 43 4c 41 52 |AME. AS|M_DECLAR|
|00002b80| 45 5f 46 55 4e 43 54 49 | 4f 4e 5f 4e 41 4d 45 20 |E_FUNCTI|ON_NAME |
|00002b90| 28 61 73 6d 5f 6f 75 74 | 5f 66 69 6c 65 2c 20 66 |(asm_out|_file, f|
|00002ba0| 6e 6e 61 6d 65 2c 20 63 | 75 72 72 65 6e 74 5f 66 |nname, c|urrent_f|
|00002bb0| 75 6e 63 74 69 6f 6e 5f | 64 65 63 6c 29 3b 0d 23 |unction_|decl);.#|
|00002bc0| 65 6c 73 65 0d 20 20 2f | 2a 20 53 74 61 6e 64 61 |else. /|* Standa|
|00002bd0| 72 64 20 74 68 69 6e 67 | 20 69 73 20 6a 75 73 74 |rd thing| is just|
|00002be0| 20 6f 75 74 70 75 74 20 | 6c 61 62 65 6c 20 66 6f | output |label fo|
|00002bf0| 72 20 74 68 65 20 66 75 | 6e 63 74 69 6f 6e 2e 20 |r the fu|nction. |
|00002c00| 20 2a 2f 0d 20 20 41 53 | 4d 5f 4f 55 54 50 55 54 | */. AS|M_OUTPUT|
|00002c10| 5f 4c 41 42 45 4c 20 28 | 61 73 6d 5f 6f 75 74 5f |_LABEL (|asm_out_|
|00002c20| 66 69 6c 65 2c 20 66 6e | 6e 61 6d 65 29 3b 0d 23 |file, fn|name);.#|
|00002c30| 65 6e 64 69 66 20 2f 2a | 20 41 53 4d 5f 44 45 43 |endif /*| ASM_DEC|
|00002c40| 4c 41 52 45 5f 46 55 4e | 43 54 49 4f 4e 5f 4e 41 |LARE_FUN|CTION_NA|
|00002c50| 4d 45 20 2a 2f 0d 7d 0d | 0d 2f 2a 20 41 73 73 65 |ME */.}.|./* Asse|
|00002c60| 6d 62 6c 65 20 22 20 2e | 69 6e 74 20 30 5c 6e 22 |mble " .|int 0\n"|
|00002c70| 20 6f 72 20 77 68 61 74 | 65 76 65 72 20 74 68 69 | or what|ever thi|
|00002c80| 73 20 61 73 73 65 6d 62 | 6c 65 72 20 77 61 6e 74 |s assemb|ler want|
|00002c90| 73 2e 20 20 2a 2f 0d 0d | 76 6f 69 64 0d 61 73 73 |s. */..|void.ass|
|00002ca0| 65 6d 62 6c 65 5f 69 6e | 74 65 67 65 72 5f 7a 65 |emble_in|teger_ze|
|00002cb0| 72 6f 20 28 29 0d 7b 0d | 20 20 41 53 4d 5f 4f 55 |ro ().{.| ASM_OU|
|00002cc0| 54 50 55 54 5f 49 4e 54 | 20 28 61 73 6d 5f 6f 75 |TPUT_INT| (asm_ou|
|00002cd0| 74 5f 66 69 6c 65 2c 20 | 63 6f 6e 73 74 30 5f 72 |t_file, |const0_r|
|00002ce0| 74 78 29 3b 0d 7d 0d 0d | 2f 2a 20 41 73 73 65 6d |tx);.}..|/* Assem|
|00002cf0| 62 6c 65 20 61 20 73 74 | 72 69 6e 67 20 63 6f 6e |ble a st|ring con|
|00002d00| 73 74 61 6e 74 20 77 69 | 74 68 20 74 68 65 20 73 |stant wi|th the s|
|00002d10| 70 65 63 69 66 69 65 64 | 20 43 20 73 74 72 69 6e |pecified| C strin|
|00002d20| 67 20 61 73 20 63 6f 6e | 74 65 6e 74 73 2e 20 20 |g as con|tents. |
|00002d30| 2a 2f 0d 0d 76 6f 69 64 | 0d 61 73 73 65 6d 62 6c |*/..void|.assembl|
|00002d40| 65 5f 73 74 72 69 6e 67 | 20 28 70 2c 20 73 69 7a |e_string| (p, siz|
|00002d50| 65 29 0d 20 20 20 20 20 | 75 6e 73 69 67 6e 65 64 |e). |unsigned|
|00002d60| 20 63 68 61 72 20 2a 70 | 3b 0d 20 20 20 20 20 69 | char *p|;. i|
|00002d70| 6e 74 20 73 69 7a 65 3b | 0d 7b 0d 20 20 72 65 67 |nt size;|.{. reg|
|00002d80| 69 73 74 65 72 20 69 6e | 74 20 69 3b 0d 20 20 69 |ister in|t i;. i|
|00002d90| 6e 74 20 65 78 63 65 73 | 73 20 3d 20 30 3b 0d 20 |nt exces|s = 0;. |
|00002da0| 20 69 6e 74 20 70 6f 73 | 20 3d 20 30 3b 0d 20 20 | int pos| = 0;. |
|00002db0| 69 6e 74 20 6d 61 78 69 | 6d 75 6d 20 3d 20 32 30 |int maxi|mum = 20|
|00002dc0| 30 30 3b 0d 0d 20 20 2f | 2a 20 49 66 20 74 68 65 |00;.. /|* If the|
|00002dd0| 20 73 74 72 69 6e 67 20 | 69 73 20 76 65 72 79 20 | string |is very |
|00002de0| 6c 6f 6e 67 2c 20 73 70 | 6c 69 74 20 69 74 20 75 |long, sp|lit it u|
|00002df0| 70 2e 20 20 2a 2f 0d 0d | 20 20 77 68 69 6c 65 20 |p. */..| while |
|00002e00| 28 70 6f 73 20 3c 20 73 | 69 7a 65 29 0d 20 20 20 |(pos < s|ize). |
|00002e10| 20 7b 0d 20 20 20 20 20 | 20 69 6e 74 20 74 68 69 | {. | int thi|
|00002e20| 73 73 69 7a 65 20 3d 20 | 73 69 7a 65 20 2d 20 70 |ssize = |size - p|
|00002e30| 6f 73 3b 0d 20 20 20 20 | 20 20 69 66 20 28 74 68 |os;. | if (th|
|00002e40| 69 73 73 69 7a 65 20 3e | 20 6d 61 78 69 6d 75 6d |issize >| maximum|
|00002e50| 29 0d 09 74 68 69 73 73 | 69 7a 65 20 3d 20 6d 61 |)..thiss|ize = ma|
|00002e60| 78 69 6d 75 6d 3b 0d 0d | 23 69 66 64 65 66 20 41 |ximum;..|#ifdef A|
|00002e70| 53 4d 5f 4f 55 54 50 55 | 54 5f 41 53 43 49 49 0d |SM_OUTPU|T_ASCII.|
|00002e80| 20 20 20 20 20 20 41 53 | 4d 5f 4f 55 54 50 55 54 | AS|M_OUTPUT|
|00002e90| 5f 41 53 43 49 49 20 28 | 61 73 6d 5f 6f 75 74 5f |_ASCII (|asm_out_|
|00002ea0| 66 69 6c 65 2c 20 70 2c | 20 74 68 69 73 73 69 7a |file, p,| thissiz|
|00002eb0| 65 29 3b 0d 23 65 6c 73 | 65 0d 20 20 20 20 20 20 |e);.#els|e. |
|00002ec0| 66 70 72 69 6e 74 66 20 | 28 61 73 6d 5f 6f 75 74 |fprintf |(asm_out|
|00002ed0| 5f 66 69 6c 65 2c 20 22 | 5c 74 2e 61 73 63 69 69 |_file, "|\t.ascii|
|00002ee0| 20 5c 22 22 29 3b 0d 0d | 20 20 20 20 20 20 66 6f | \"");..| fo|
|00002ef0| 72 20 28 69 20 3d 20 30 | 3b 20 69 20 3c 20 74 68 |r (i = 0|; i < th|
|00002f00| 69 73 73 69 7a 65 3b 20 | 69 2b 2b 29 0d 09 7b 0d |issize; |i++)..{.|
|00002f10| 09 20 20 72 65 67 69 73 | 74 65 72 20 69 6e 74 20 |. regis|ter int |
|00002f20| 63 20 3d 20 70 5b 69 5d | 3b 0d 09 20 20 69 66 20 |c = p[i]|;.. if |
|00002f30| 28 63 20 3d 3d 20 27 5c | 22 27 20 7c 7c 20 63 20 |(c == '\|"' || c |
|00002f40| 3d 3d 20 27 5c 5c 27 29 | 0d 09 20 20 20 20 70 75 |== '\\')|.. pu|
|00002f50| 74 63 20 28 27 5c 5c 27 | 2c 20 61 73 6d 5f 6f 75 |tc ('\\'|, asm_ou|
|00002f60| 74 5f 66 69 6c 65 29 3b | 0d 09 20 20 69 66 20 28 |t_file);|.. if (|
|00002f70| 63 20 3e 3d 20 27 20 27 | 20 26 26 20 63 20 3c 20 |c >= ' '| && c < |
|00002f80| 30 31 37 37 29 0d 09 20 | 20 20 20 70 75 74 63 20 |0177).. | putc |
|00002f90| 28 63 2c 20 61 73 6d 5f | 6f 75 74 5f 66 69 6c 65 |(c, asm_|out_file|
|00002fa0| 29 3b 0d 09 20 20 65 6c | 73 65 0d 09 20 20 20 20 |);.. el|se.. |
|00002fb0| 7b 0d 09 20 20 20 20 20 | 20 66 70 72 69 6e 74 66 |{.. | fprintf|
|00002fc0| 20 28 61 73 6d 5f 6f 75 | 74 5f 66 69 6c 65 2c 20 | (asm_ou|t_file, |
|00002fd0| 22 5c 5c 25 6f 22 2c 20 | 63 29 3b 0d 09 20 20 20 |"\\%o", |c);.. |
|00002fe0| 20 20 20 2f 2a 20 41 66 | 74 65 72 20 61 6e 20 6f | /* Af|ter an o|
|00002ff0| 63 74 61 6c 2d 65 73 63 | 61 70 65 2c 20 69 66 20 |ctal-esc|ape, if |
|00003000| 61 20 64 69 67 69 74 20 | 66 6f 6c 6c 6f 77 73 2c |a digit |follows,|
|00003010| 0d 09 09 20 74 65 72 6d | 69 6e 61 74 65 20 6f 6e |... term|inate on|
|00003020| 65 20 73 74 72 69 6e 67 | 20 63 6f 6e 73 74 61 6e |e string| constan|
|00003030| 74 20 61 6e 64 20 73 74 | 61 72 74 20 61 6e 6f 74 |t and st|art anot|
|00003040| 68 65 72 2e 0d 09 09 20 | 54 68 65 20 56 61 78 20 |her.... |The Vax |
|00003050| 61 73 73 65 6d 62 6c 65 | 72 20 66 61 69 6c 73 20 |assemble|r fails |
|00003060| 74 6f 20 73 74 6f 70 20 | 72 65 61 64 69 6e 67 20 |to stop |reading |
|00003070| 74 68 65 20 65 73 63 61 | 70 65 0d 09 09 20 61 66 |the esca|pe... af|
|00003080| 74 65 72 20 74 68 72 65 | 65 20 64 69 67 69 74 73 |ter thre|e digits|
|00003090| 2c 20 73 6f 20 74 68 69 | 73 20 69 73 20 74 68 65 |, so thi|s is the|
|000030a0| 20 6f 6e 6c 79 20 77 61 | 79 20 77 65 0d 09 09 20 | only wa|y we... |
|000030b0| 63 61 6e 20 67 65 74 20 | 69 74 20 74 6f 20 70 61 |can get |it to pa|
|000030c0| 72 73 65 20 74 68 65 20 | 64 61 74 61 20 70 72 6f |rse the |data pro|
|000030d0| 70 65 72 6c 79 2e 20 20 | 2a 2f 0d 09 20 20 20 20 |perly. |*/.. |
|000030e0| 20 20 69 66 20 28 69 20 | 3c 20 74 68 69 73 73 69 | if (i |< thissi|
|000030f0| 7a 65 20 2d 20 31 0d 09 | 09 20 20 26 26 20 70 5b |ze - 1..|. && p[|
|00003100| 69 20 2b 20 31 5d 20 3e | 3d 20 27 30 27 20 26 26 |i + 1] >|= '0' &&|
|00003110| 20 70 5b 69 20 2b 20 31 | 5d 20 3c 3d 20 27 39 27 | p[i + 1|] <= '9'|
|00003120| 29 0d 09 09 66 70 72 69 | 6e 74 66 20 28 61 73 6d |)...fpri|ntf (asm|
|00003130| 5f 6f 75 74 5f 66 69 6c | 65 2c 20 22 5c 22 5c 6e |_out_fil|e, "\"\n|
|00003140| 5c 74 2e 61 73 63 69 69 | 20 5c 22 22 29 3b 0d 09 |\t.ascii| \"");..|
|00003150| 20 20 20 20 7d 0d 09 7d | 0d 20 20 20 20 20 20 66 | }..}|. f|
|00003160| 70 72 69 6e 74 66 20 28 | 61 73 6d 5f 6f 75 74 5f |printf (|asm_out_|
|00003170| 66 69 6c 65 2c 20 22 5c | 22 5c 6e 22 29 3b 0d 23 |file, "\|"\n");.#|
|00003180| 65 6e 64 69 66 20 2f 2a | 20 6e 6f 20 41 53 4d 5f |endif /*| no ASM_|
|00003190| 4f 55 54 50 55 54 5f 41 | 53 43 49 49 20 2a 2f 0d |OUTPUT_A|SCII */.|
|000031a0| 0d 20 20 20 20 20 20 70 | 6f 73 20 2b 3d 20 74 68 |. p|os += th|
|000031b0| 69 73 73 69 7a 65 3b 0d | 20 20 20 20 20 20 70 20 |issize;.| p |
|000031c0| 2b 3d 20 74 68 69 73 73 | 69 7a 65 3b 0d 20 20 20 |+= thiss|ize;. |
|000031d0| 20 7d 0d 7d 0d 0c 0d 2f | 2a 20 41 73 73 65 6d 62 | }.}.../|* Assemb|
|000031e0| 6c 65 20 65 76 65 72 79 | 74 68 69 6e 67 20 74 68 |le every|thing th|
|000031f0| 61 74 20 69 73 20 6e 65 | 65 64 65 64 20 66 6f 72 |at is ne|eded for|
|00003200| 20 61 20 76 61 72 69 61 | 62 6c 65 20 6f 72 20 66 | a varia|ble or f|
|00003210| 75 6e 63 74 69 6f 6e 20 | 64 65 63 6c 61 72 61 74 |unction |declarat|
|00003220| 69 6f 6e 2e 0d 20 20 20 | 4e 6f 74 20 75 73 65 64 |ion.. |Not used|
|00003230| 20 66 6f 72 20 61 75 74 | 6f 6d 61 74 69 63 20 76 | for aut|omatic v|
|00003240| 61 72 69 61 62 6c 65 73 | 2c 20 61 6e 64 20 6e 6f |ariables|, and no|
|00003250| 74 20 75 73 65 64 20 66 | 6f 72 20 66 75 6e 63 74 |t used f|or funct|
|00003260| 69 6f 6e 20 64 65 66 69 | 6e 69 74 69 6f 6e 73 2e |ion defi|nitions.|
|00003270| 0d 20 20 20 53 68 6f 75 | 6c 64 20 6e 6f 74 20 62 |. Shou|ld not b|
|00003280| 65 20 63 61 6c 6c 65 64 | 20 66 6f 72 20 76 61 72 |e called| for var|
|00003290| 69 61 62 6c 65 73 20 6f | 66 20 69 6e 63 6f 6d 70 |iables o|f incomp|
|000032a0| 6c 65 74 65 20 73 74 72 | 75 63 74 75 72 65 20 74 |lete str|ucture t|
|000032b0| 79 70 65 2e 0d 0d 20 20 | 20 54 4f 50 5f 4c 45 56 |ype... | TOP_LEV|
|000032c0| 45 4c 20 69 73 20 6e 6f | 6e 7a 65 72 6f 20 69 66 |EL is no|nzero if|
|000032d0| 20 74 68 69 73 20 76 61 | 72 69 61 62 6c 65 20 68 | this va|riable h|
|000032e0| 61 73 20 66 69 6c 65 20 | 73 63 6f 70 65 2e 0d 20 |as file |scope.. |
|000032f0| 20 20 57 52 49 54 45 5f | 53 59 4d 42 4f 4c 53 20 | WRITE_|SYMBOLS |
|00003300| 69 73 20 44 42 58 5f 44 | 45 42 55 47 20 69 66 20 |is DBX_D|EBUG if |
|00003310| 77 72 69 74 69 6e 67 20 | 64 62 78 20 73 79 6d 62 |writing |dbx symb|
|00003320| 6f 6c 20 6f 75 74 70 75 | 74 2e 0d 20 20 20 54 68 |ol outpu|t.. Th|
|00003330| 65 20 64 62 78 20 64 61 | 74 61 20 66 6f 72 20 61 |e dbx da|ta for a|
|00003340| 20 66 69 6c 65 2d 73 63 | 6f 70 65 20 76 61 72 69 | file-sc|ope vari|
|00003350| 61 62 6c 65 20 69 73 20 | 77 72 69 74 74 65 6e 20 |able is |written |
|00003360| 68 65 72 65 2e 0d 20 20 | 20 41 54 5f 45 4e 44 20 |here.. | AT_END |
|00003370| 69 73 20 6e 6f 6e 7a 65 | 72 6f 20 69 66 20 74 68 |is nonze|ro if th|
|00003380| 69 73 20 69 73 20 74 68 | 65 20 73 70 65 63 69 61 |is is th|e specia|
|00003390| 6c 20 68 61 6e 64 6c 69 | 6e 67 2c 20 61 74 20 65 |l handli|ng, at e|
|000033a0| 6e 64 20 6f 66 20 63 6f | 6d 70 69 6c 61 74 69 6f |nd of co|mpilatio|
|000033b0| 6e 2c 0d 20 20 20 74 6f | 20 64 65 66 69 6e 65 20 |n,. to| define |
|000033c0| 74 68 69 6e 67 73 20 74 | 68 61 74 20 68 61 76 65 |things t|hat have|
|000033d0| 20 68 61 64 20 6f 6e 6c | 79 20 74 65 6e 74 61 74 | had onl|y tentat|
|000033e0| 69 76 65 20 64 65 66 69 | 6e 69 74 69 6f 6e 73 2e |ive defi|nitions.|
|000033f0| 20 20 2a 2f 0d 0d 76 6f | 69 64 0d 61 73 73 65 6d | */..vo|id.assem|
|00003400| 62 6c 65 5f 76 61 72 69 | 61 62 6c 65 20 28 64 65 |ble_vari|able (de|
|00003410| 63 6c 2c 20 74 6f 70 5f | 6c 65 76 65 6c 2c 20 77 |cl, top_|level, w|
|00003420| 72 69 74 65 5f 73 79 6d | 62 6f 6c 73 2c 20 61 74 |rite_sym|bols, at|
|00003430| 5f 65 6e 64 29 0d 20 20 | 20 20 20 74 72 65 65 20 |_end). | tree |
|00003440| 64 65 63 6c 3b 0d 20 20 | 20 20 20 69 6e 74 20 74 |decl;. | int t|
|00003450| 6f 70 5f 6c 65 76 65 6c | 3b 0d 20 20 20 20 20 65 |op_level|;. e|
|00003460| 6e 75 6d 20 64 65 62 75 | 67 67 65 72 20 77 72 69 |num debu|gger wri|
|00003470| 74 65 5f 73 79 6d 62 6f | 6c 73 3b 0d 20 20 20 20 |te_symbo|ls;. |
|00003480| 20 69 6e 74 20 61 74 5f | 65 6e 64 3b 0d 7b 0d 20 | int at_|end;.{. |
|00003490| 20 72 65 67 69 73 74 65 | 72 20 63 68 61 72 20 2a | registe|r char *|
|000034a0| 6e 61 6d 65 3b 0d 20 20 | 72 65 67 69 73 74 65 72 |name;. |register|
|000034b0| 20 69 6e 74 20 69 3b 0d | 0d 20 20 2f 2a 20 44 6f | int i;.|. /* Do|
|000034c0| 20 6e 6f 74 68 69 6e 67 | 20 66 6f 72 20 67 6c 6f | nothing| for glo|
|000034d0| 62 61 6c 20 72 65 67 69 | 73 74 65 72 20 76 61 72 |bal regi|ster var|
|000034e0| 69 61 62 6c 65 73 2e 20 | 20 2a 2f 0d 0d 20 20 69 |iables. | */.. i|
|000034f0| 66 20 28 47 45 54 5f 43 | 4f 44 45 20 28 44 45 43 |f (GET_C|ODE (DEC|
|00003500| 4c 5f 52 54 4c 20 28 64 | 65 63 6c 29 29 20 3d 3d |L_RTL (d|ecl)) ==|
|00003510| 20 52 45 47 29 0d 20 20 | 20 20 72 65 74 75 72 6e | REG). | return|
|00003520| 3b 0d 0d 20 20 2f 2a 20 | 4e 6f 72 6d 61 6c 6c 79 |;.. /* |Normally|
|00003530| 20 6e 6f 20 6e 65 65 64 | 20 74 6f 20 73 61 79 20 | no need| to say |
|00003540| 61 6e 79 74 68 69 6e 67 | 20 66 6f 72 20 65 78 74 |anything| for ext|
|00003550| 65 72 6e 61 6c 20 72 65 | 66 65 72 65 6e 63 65 73 |ernal re|ferences|
|00003560| 2c 0d 20 20 20 20 20 73 | 69 6e 63 65 20 61 73 73 |,. s|ince ass|
|00003570| 65 6d 62 6c 65 72 20 63 | 6f 6e 73 69 64 65 72 73 |embler c|onsiders|
|00003580| 20 61 6c 6c 20 75 6e 64 | 65 66 69 6e 65 64 20 73 | all und|efined s|
|00003590| 79 6d 62 6f 6c 73 20 65 | 78 74 65 72 6e 61 6c 2e |ymbols e|xternal.|
|000035a0| 20 20 2a 2f 0d 0d 20 20 | 69 66 20 28 54 52 45 45 | */.. |if (TREE|
|000035b0| 5f 45 58 54 45 52 4e 41 | 4c 20 28 64 65 63 6c 29 |_EXTERNA|L (decl)|
|000035c0| 29 0d 20 20 20 20 72 65 | 74 75 72 6e 3b 0d 0d 20 |). re|turn;.. |
|000035d0| 20 2f 2a 20 4f 75 74 70 | 75 74 20 6e 6f 20 61 73 | /* Outp|ut no as|
|000035e0| 73 65 6d 62 6c 65 72 20 | 63 6f 64 65 20 66 6f 72 |sembler |code for|
|000035f0| 20 61 20 66 75 6e 63 74 | 69 6f 6e 20 64 65 63 6c | a funct|ion decl|
|00003600| 61 72 61 74 69 6f 6e 2e | 0d 20 20 20 20 20 4f 6e |aration.|. On|
|00003610| 6c 79 20 64 65 66 69 6e | 69 74 69 6f 6e 73 20 6f |ly defin|itions o|
|00003620| 66 20 66 75 6e 63 74 69 | 6f 6e 73 20 6f 75 74 70 |f functi|ons outp|
|00003630| 75 74 20 61 6e 79 74 68 | 69 6e 67 2e 20 20 2a 2f |ut anyth|ing. */|
|00003640| 0d 0d 20 20 69 66 20 28 | 54 52 45 45 5f 43 4f 44 |.. if (|TREE_COD|
|00003650| 45 20 28 64 65 63 6c 29 | 20 3d 3d 20 46 55 4e 43 |E (decl)| == FUNC|
|00003660| 54 49 4f 4e 5f 44 45 43 | 4c 29 0d 20 20 20 20 72 |TION_DEC|L). r|
|00003670| 65 74 75 72 6e 3b 0d 0d | 20 20 2f 2a 20 49 66 20 |eturn;..| /* If |
|00003680| 74 79 70 65 20 77 61 73 | 20 69 6e 63 6f 6d 70 6c |type was| incompl|
|00003690| 65 74 65 20 77 68 65 6e | 20 74 68 65 20 76 61 72 |ete when| the var|
|000036a0| 69 61 62 6c 65 20 77 61 | 73 20 64 65 63 6c 61 72 |iable wa|s declar|
|000036b0| 65 64 2c 0d 20 20 20 20 | 20 73 65 65 20 69 66 20 |ed,. | see if |
|000036c0| 69 74 20 69 73 20 63 6f | 6d 70 6c 65 74 65 20 6e |it is co|mplete n|
|000036d0| 6f 77 2e 20 20 2a 2f 0d | 0d 20 20 69 66 20 28 44 |ow. */.|. if (D|
|000036e0| 45 43 4c 5f 53 49 5a 45 | 20 28 64 65 63 6c 29 20 |ECL_SIZE| (decl) |
|000036f0| 3d 3d 20 30 29 0d 20 20 | 20 20 6c 61 79 6f 75 74 |== 0). | layout|
|00003700| 5f 64 65 63 6c 20 28 64 | 65 63 6c 2c 20 30 29 3b |_decl (d|ecl, 0);|
|00003710| 0d 0d 20 20 2f 2a 20 53 | 74 69 6c 6c 20 69 6e 63 |.. /* S|till inc|
|00003720| 6f 6d 70 6c 65 74 65 20 | 3d 3e 20 64 6f 6e 27 74 |omplete |=> don't|
|00003730| 20 61 6c 6c 6f 63 61 74 | 65 20 69 74 3b 20 74 72 | allocat|e it; tr|
|00003740| 65 61 74 20 74 68 65 20 | 74 65 6e 74 61 74 69 76 |eat the |tentativ|
|00003750| 65 20 64 65 66 6e 0d 20 | 20 20 20 20 28 77 68 69 |e defn. | (whi|
|00003760| 63 68 20 69 73 20 77 68 | 61 74 20 69 74 20 6d 75 |ch is wh|at it mu|
|00003770| 73 74 20 68 61 76 65 20 | 62 65 65 6e 29 20 61 73 |st have |been) as|
|00003780| 20 61 6e 20 60 65 78 74 | 65 72 6e 27 20 72 65 66 | an `ext|ern' ref|
|00003790| 65 72 65 6e 63 65 2e 20 | 20 2a 2f 0d 0d 20 20 69 |erence. | */.. i|
|000037a0| 66 20 28 44 45 43 4c 5f | 53 49 5a 45 20 28 64 65 |f (DECL_|SIZE (de|
|000037b0| 63 6c 29 20 3d 3d 20 30 | 29 0d 20 20 20 20 7b 0d |cl) == 0|). {.|
|000037c0| 20 20 20 20 20 20 65 72 | 72 6f 72 5f 77 69 74 68 | er|ror_with|
|000037d0| 5f 66 69 6c 65 5f 61 6e | 64 5f 6c 69 6e 65 20 28 |_file_an|d_line (|
|000037e0| 44 45 43 4c 5f 53 4f 55 | 52 43 45 5f 46 49 4c 45 |DECL_SOU|RCE_FILE|
|000037f0| 20 28 64 65 63 6c 29 2c | 0d 09 09 09 09 44 45 43 | (decl),|.....DEC|
|00003800| 4c 5f 53 4f 55 52 43 45 | 5f 4c 49 4e 45 20 28 64 |L_SOURCE|_LINE (d|
|00003810| 65 63 6c 29 2c 0d 09 09 | 09 09 22 73 74 6f 72 61 |ecl),...|.."stora|
|00003820| 67 65 20 73 69 7a 65 20 | 6f 66 20 73 74 61 74 69 |ge size |of stati|
|00003830| 63 20 76 61 72 20 60 25 | 73 27 20 69 73 6e 27 74 |c var `%|s' isn't|
|00003840| 20 6b 6e 6f 77 6e 22 2c | 0d 09 09 09 09 49 44 45 | known",|.....IDE|
|00003850| 4e 54 49 46 49 45 52 5f | 50 4f 49 4e 54 45 52 20 |NTIFIER_|POINTER |
|00003860| 28 44 45 43 4c 5f 4e 41 | 4d 45 20 28 64 65 63 6c |(DECL_NA|ME (decl|
|00003870| 29 29 29 3b 0d 20 20 20 | 20 20 20 72 65 74 75 72 |)));. | retur|
|00003880| 6e 3b 0d 20 20 20 20 7d | 0d 0d 20 20 2f 2a 20 54 |n;. }|.. /* T|
|00003890| 68 65 20 66 69 72 73 74 | 20 64 65 63 6c 61 72 61 |he first| declara|
|000038a0| 74 69 6f 6e 20 6f 66 20 | 61 20 76 61 72 69 61 62 |tion of |a variab|
|000038b0| 6c 65 20 74 68 61 74 20 | 63 6f 6d 65 73 20 74 68 |le that |comes th|
|000038c0| 72 6f 75 67 68 20 74 68 | 69 73 20 66 75 6e 63 74 |rough th|is funct|
|000038d0| 69 6f 6e 0d 20 20 20 20 | 20 64 65 63 69 64 65 73 |ion. | decides|
|000038e0| 20 77 68 65 74 68 65 72 | 20 69 74 20 69 73 20 67 | whether| it is g|
|000038f0| 6c 6f 62 61 6c 20 28 69 | 6e 20 43 2c 20 68 61 73 |lobal (i|n C, has|
|00003900| 20 65 78 74 65 72 6e 61 | 6c 20 6c 69 6e 6b 61 67 | externa|l linkag|
|00003910| 65 29 0d 20 20 20 20 20 | 6f 72 20 6c 6f 63 61 6c |e). |or local|
|00003920| 20 28 69 6e 20 43 2c 20 | 68 61 73 20 69 6e 74 65 | (in C, |has inte|
|00003930| 72 6e 61 6c 20 6c 69 6e | 6b 61 67 65 29 2e 20 20 |rnal lin|kage). |
|00003940| 53 6f 20 64 6f 20 6e 6f | 74 68 69 6e 67 20 6d 6f |So do no|thing mo|
|00003950| 72 65 0d 20 20 20 20 20 | 69 66 20 74 68 69 73 20 |re. |if this |
|00003960| 66 75 6e 63 74 69 6f 6e | 20 68 61 73 20 61 6c 72 |function| has alr|
|00003970| 65 61 64 79 20 72 75 6e | 2e 20 20 2a 2f 0d 0d 20 |eady run|. */.. |
|00003980| 20 69 66 20 28 54 52 45 | 45 5f 41 53 4d 5f 57 52 | if (TRE|E_ASM_WR|
|00003990| 49 54 54 45 4e 20 28 64 | 65 63 6c 29 29 0d 20 20 |ITTEN (d|ecl)). |
|000039a0| 20 20 72 65 74 75 72 6e | 3b 0d 0d 20 20 54 52 45 | return|;.. TRE|
|000039b0| 45 5f 41 53 4d 5f 57 52 | 49 54 54 45 4e 20 28 64 |E_ASM_WR|ITTEN (d|
|000039c0| 65 63 6c 29 20 3d 20 31 | 3b 0d 0d 23 69 66 64 65 |ecl) = 1|;..#ifde|
|000039d0| 66 20 44 42 58 5f 44 45 | 42 55 47 47 49 4e 47 5f |f DBX_DE|BUGGING_|
|000039e0| 49 4e 46 4f 0d 20 20 2f | 2a 20 46 69 6c 65 2d 73 |INFO. /|* File-s|
|000039f0| 63 6f 70 65 20 67 6c 6f | 62 61 6c 20 76 61 72 69 |cope glo|bal vari|
|00003a00| 61 62 6c 65 73 20 61 72 | 65 20 6f 75 74 70 75 74 |ables ar|e output|
|00003a10| 20 68 65 72 65 2e 20 20 | 2a 2f 0d 20 20 69 66 20 | here. |*/. if |
|00003a20| 28 77 72 69 74 65 5f 73 | 79 6d 62 6f 6c 73 20 3d |(write_s|ymbols =|
|00003a30| 3d 20 44 42 58 5f 44 45 | 42 55 47 20 26 26 20 74 |= DBX_DE|BUG && t|
|00003a40| 6f 70 5f 6c 65 76 65 6c | 29 0d 20 20 20 20 64 62 |op_level|). db|
|00003a50| 78 6f 75 74 5f 73 79 6d | 62 6f 6c 20 28 64 65 63 |xout_sym|bol (dec|
|00003a60| 6c 2c 20 30 29 3b 0d 23 | 65 6e 64 69 66 0d 23 69 |l, 0);.#|endif.#i|
|00003a70| 66 64 65 66 20 53 44 42 | 5f 44 45 42 55 47 47 49 |fdef SDB|_DEBUGGI|
|00003a80| 4e 47 5f 49 4e 46 4f 0d | 20 20 69 66 20 28 77 72 |NG_INFO.| if (wr|
|00003a90| 69 74 65 5f 73 79 6d 62 | 6f 6c 73 20 3d 3d 20 53 |ite_symb|ols == S|
|00003aa0| 44 42 5f 44 45 42 55 47 | 20 26 26 20 74 6f 70 5f |DB_DEBUG| && top_|
|00003ab0| 6c 65 76 65 6c 29 0d 20 | 20 20 20 73 64 62 6f 75 |level). | sdbou|
|00003ac0| 74 5f 73 79 6d 62 6f 6c | 20 28 64 65 63 6c 2c 20 |t_symbol| (decl, |
|00003ad0| 30 29 3b 0d 23 65 6e 64 | 69 66 0d 20 20 69 66 20 |0);.#end|if. if |
|00003ae0| 28 77 72 69 74 65 5f 73 | 79 6d 62 6f 6c 73 20 3d |(write_s|ymbols =|
|00003af0| 3d 20 47 44 42 5f 44 45 | 42 55 47 29 0d 20 20 20 |= GDB_DE|BUG). |
|00003b00| 20 2f 2a 20 4d 61 6b 65 | 20 73 75 72 65 20 74 68 | /* Make| sure th|
|00003b10| 65 20 66 69 6c 65 20 69 | 73 20 6b 6e 6f 77 6e 20 |e file i|s known |
|00003b20| 74 6f 20 47 44 42 20 65 | 76 65 6e 20 69 66 20 69 |to GDB e|ven if i|
|00003b30| 74 20 68 61 73 20 6e 6f | 20 66 75 6e 63 74 69 6f |t has no| functio|
|00003b40| 6e 73 2e 20 20 2a 2f 0d | 20 20 20 20 73 65 74 5f |ns. */.| set_|
|00003b50| 63 75 72 72 65 6e 74 5f | 67 64 62 66 69 6c 65 20 |current_|gdbfile |
|00003b60| 28 44 45 43 4c 5f 53 4f | 55 52 43 45 5f 46 49 4c |(DECL_SO|URCE_FIL|
|00003b70| 45 20 28 64 65 63 6c 29 | 29 3b 0d 0d 20 20 2f 2a |E (decl)|);.. /*|
|00003b80| 20 49 66 20 73 74 6f 72 | 61 67 65 20 73 69 7a 65 | If stor|age size|
|00003b90| 20 69 73 20 65 72 72 6f | 6e 65 6f 75 73 6c 79 20 | is erro|neously |
|00003ba0| 76 61 72 69 61 62 6c 65 | 2c 20 6a 75 73 74 20 63 |variable|, just c|
|00003bb0| 6f 6e 74 69 6e 75 65 2e | 0d 20 20 20 20 20 45 72 |ontinue.|. Er|
|00003bc0| 72 6f 72 20 6d 65 73 73 | 61 67 65 20 77 61 73 20 |ror mess|age was |
|00003bd0| 61 6c 72 65 61 64 79 20 | 6d 61 64 65 2e 20 20 2a |already |made. *|
|00003be0| 2f 0d 0d 20 20 69 66 20 | 28 21 20 54 52 45 45 5f |/.. if |(! TREE_|
|00003bf0| 4c 49 54 45 52 41 4c 20 | 28 44 45 43 4c 5f 53 49 |LITERAL |(DECL_SI|
|00003c00| 5a 45 20 28 64 65 63 6c | 29 29 29 0d 20 20 20 20 |ZE (decl|))). |
|00003c10| 72 65 74 75 72 6e 3b 0d | 0d 20 20 61 70 70 5f 64 |return;.|. app_d|
|00003c20| 69 73 61 62 6c 65 20 28 | 29 3b 0d 0d 20 20 6e 61 |isable (|);.. na|
|00003c30| 6d 65 20 3d 20 58 53 54 | 52 20 28 58 45 58 50 20 |me = XST|R (XEXP |
|00003c40| 28 44 45 43 4c 5f 52 54 | 4c 20 28 64 65 63 6c 29 |(DECL_RT|L (decl)|
|00003c50| 2c 20 30 29 2c 20 30 29 | 3b 0d 0d 20 20 2f 2a 20 |, 0), 0)|;.. /* |
|00003c60| 48 61 6e 64 6c 65 20 75 | 6e 69 6e 69 74 69 61 6c |Handle u|ninitial|
|00003c70| 69 7a 65 64 20 64 65 66 | 69 6e 69 74 69 6f 6e 73 |ized def|initions|
|00003c80| 2e 20 20 2a 2f 0d 0d 20 | 20 69 66 20 28 44 45 43 |. */.. | if (DEC|
|00003c90| 4c 5f 49 4e 49 54 49 41 | 4c 20 28 64 65 63 6c 29 |L_INITIA|L (decl)|
|00003ca0| 20 3d 3d 20 30 20 7c 7c | 20 44 45 43 4c 5f 49 4e | == 0 ||| DECL_IN|
|00003cb0| 49 54 49 41 4c 20 28 64 | 65 63 6c 29 20 3d 3d 20 |ITIAL (d|ecl) == |
|00003cc0| 65 72 72 6f 72 5f 6d 61 | 72 6b 5f 6e 6f 64 65 29 |error_ma|rk_node)|
|00003cd0| 0d 20 20 20 20 7b 0d 20 | 20 20 20 20 20 69 6e 74 |. {. | int|
|00003ce0| 20 73 69 7a 65 20 3d 20 | 28 54 52 45 45 5f 49 4e | size = |(TREE_IN|
|00003cf0| 54 5f 43 53 54 5f 4c 4f | 57 20 28 44 45 43 4c 5f |T_CST_LO|W (DECL_|
|00003d00| 53 49 5a 45 20 28 64 65 | 63 6c 29 29 0d 09 09 20 |SIZE (de|cl))... |
|00003d10| 20 2a 20 44 45 43 4c 5f | 53 49 5a 45 5f 55 4e 49 | * DECL_|SIZE_UNI|
|00003d20| 54 20 28 64 65 63 6c 29 | 0d 09 09 20 20 2f 20 42 |T (decl)|... / B|
|00003d30| 49 54 53 5f 50 45 52 5f | 55 4e 49 54 29 3b 0d 20 |ITS_PER_|UNIT);. |
|00003d40| 20 20 20 20 20 69 6e 74 | 20 72 6f 75 6e 64 65 64 | int| rounded|
|00003d50| 20 3d 20 73 69 7a 65 3b | 0d 20 20 20 20 20 20 2f | = size;|. /|
|00003d60| 2a 20 44 6f 6e 27 74 20 | 61 6c 6c 6f 63 61 74 65 |* Don't |allocate|
|00003d70| 20 7a 65 72 6f 20 62 79 | 74 65 73 20 6f 66 20 63 | zero by|tes of c|
|00003d80| 6f 6d 6d 6f 6e 2c 0d 09 | 20 73 69 6e 63 65 20 74 |ommon,..| since t|
|00003d90| 68 61 74 20 6d 65 61 6e | 73 20 22 75 6e 64 65 66 |hat mean|s "undef|
|00003da0| 69 6e 65 64 20 65 78 74 | 65 72 6e 61 6c 22 20 69 |ined ext|ernal" i|
|00003db0| 6e 20 74 68 65 20 6c 69 | 6e 6b 65 72 2e 20 20 2a |n the li|nker. *|
|00003dc0| 2f 0d 20 20 20 20 20 20 | 69 66 20 28 73 69 7a 65 |/. |if (size|
|00003dd0| 20 3d 3d 20 30 29 20 72 | 6f 75 6e 64 65 64 20 3d | == 0) r|ounded =|
|00003de0| 20 31 3b 0d 20 20 20 20 | 20 20 2f 2a 20 52 6f 75 | 1;. | /* Rou|
|00003df0| 6e 64 20 73 69 7a 65 20 | 75 70 20 74 6f 20 6d 75 |nd size |up to mu|
|00003e00| 6c 74 69 70 6c 65 20 6f | 66 20 42 49 47 47 45 53 |ltiple o|f BIGGES|
|00003e10| 54 5f 41 4c 49 47 4e 4d | 45 4e 54 20 62 69 74 73 |T_ALIGNM|ENT bits|
|00003e20| 0d 09 20 73 6f 20 74 68 | 61 74 20 65 61 63 68 20 |.. so th|at each |
|00003e30| 75 6e 69 6e 69 74 69 61 | 6c 69 7a 65 64 20 6f 62 |uninitia|lized ob|
|00003e40| 6a 65 63 74 20 73 74 61 | 72 74 73 20 6f 6e 20 73 |ject sta|rts on s|
|00003e50| 75 63 68 20 61 20 62 6f | 75 6e 64 61 72 79 2e 20 |uch a bo|undary. |
|00003e60| 20 2a 2f 0d 20 20 20 20 | 20 20 72 6f 75 6e 64 65 | */. | rounde|
|00003e70| 64 20 3d 20 28 28 72 6f | 75 6e 64 65 64 20 2b 20 |d = ((ro|unded + |
|00003e80| 28 42 49 47 47 45 53 54 | 5f 41 4c 49 47 4e 4d 45 |(BIGGEST|_ALIGNME|
|00003e90| 4e 54 20 2f 20 42 49 54 | 53 5f 50 45 52 5f 55 4e |NT / BIT|S_PER_UN|
|00003ea0| 49 54 29 20 2d 20 31 29 | 0d 09 09 20 2f 20 28 42 |IT) - 1)|... / (B|
|00003eb0| 49 47 47 45 53 54 5f 41 | 4c 49 47 4e 4d 45 4e 54 |IGGEST_A|LIGNMENT|
|00003ec0| 20 2f 20 42 49 54 53 5f | 50 45 52 5f 55 4e 49 54 | / BITS_|PER_UNIT|
|00003ed0| 29 0d 09 09 20 2a 20 28 | 42 49 47 47 45 53 54 5f |)... * (|BIGGEST_|
|00003ee0| 41 4c 49 47 4e 4d 45 4e | 54 20 2f 20 42 49 54 53 |ALIGNMEN|T / BITS|
|00003ef0| 5f 50 45 52 5f 55 4e 49 | 54 29 29 3b 0d 20 20 20 |_PER_UNI|T));. |
|00003f00| 20 20 20 69 66 20 28 66 | 6c 61 67 5f 73 68 61 72 | if (f|lag_shar|
|00003f10| 65 64 5f 64 61 74 61 29 | 0d 09 64 61 74 61 5f 73 |ed_data)|..data_s|
|00003f20| 65 63 74 69 6f 6e 20 28 | 29 3b 0d 20 20 20 20 20 |ection (|);. |
|00003f30| 20 69 66 20 28 54 52 45 | 45 5f 50 55 42 4c 49 43 | if (TRE|E_PUBLIC|
|00003f40| 20 28 64 65 63 6c 29 29 | 0d 09 41 53 4d 5f 4f 55 | (decl))|..ASM_OU|
|00003f50| 54 50 55 54 5f 43 4f 4d | 4d 4f 4e 20 28 61 73 6d |TPUT_COM|MON (asm|
|00003f60| 5f 6f 75 74 5f 66 69 6c | 65 2c 20 6e 61 6d 65 2c |_out_fil|e, name,|
|00003f70| 20 73 69 7a 65 2c 20 72 | 6f 75 6e 64 65 64 29 3b | size, r|ounded);|
|00003f80| 0d 20 20 20 20 20 20 65 | 6c 73 65 0d 09 41 53 4d |. e|lse..ASM|
|00003f90| 5f 4f 55 54 50 55 54 5f | 4c 4f 43 41 4c 20 28 61 |_OUTPUT_|LOCAL (a|
|00003fa0| 73 6d 5f 6f 75 74 5f 66 | 69 6c 65 2c 20 6e 61 6d |sm_out_f|ile, nam|
|00003fb0| 65 2c 20 73 69 7a 65 2c | 20 72 6f 75 6e 64 65 64 |e, size,| rounded|
|00003fc0| 29 3b 0d 20 20 20 20 20 | 20 72 65 74 75 72 6e 3b |);. | return;|
|00003fd0| 0d 20 20 20 20 7d 0d 0d | 20 20 2f 2a 20 48 61 6e |. }..| /* Han|
|00003fe0| 64 6c 65 20 69 6e 69 74 | 69 61 6c 69 7a 65 64 20 |dle init|ialized |
|00003ff0| 64 65 66 69 6e 69 74 69 | 6f 6e 73 2e 20 20 2a 2f |definiti|ons. */|
|00004000| 0d 0d 20 20 2f 2a 20 46 | 69 72 73 74 20 6d 61 6b |.. /* F|irst mak|
|00004010| 65 20 74 68 65 20 61 73 | 73 65 6d 62 6c 65 72 20 |e the as|sembler |
|00004020| 6e 61 6d 65 28 73 29 20 | 67 6c 6f 62 61 6c 20 69 |name(s) |global i|
|00004030| 66 20 61 70 70 72 6f 70 | 72 69 61 74 65 2e 20 20 |f approp|riate. |
|00004040| 2a 2f 0d 20 20 69 66 20 | 28 54 52 45 45 5f 50 55 |*/. if |(TREE_PU|
|00004050| 42 4c 49 43 20 28 64 65 | 63 6c 29 20 26 26 20 44 |BLIC (de|cl) && D|
|00004060| 45 43 4c 5f 4e 41 4d 45 | 20 28 64 65 63 6c 29 29 |ECL_NAME| (decl))|
|00004070| 0d 20 20 20 20 41 53 4d | 5f 47 4c 4f 42 41 4c 49 |. ASM|_GLOBALI|
|00004080| 5a 45 5f 4c 41 42 45 4c | 20 28 61 73 6d 5f 6f 75 |ZE_LABEL| (asm_ou|
|00004090| 74 5f 66 69 6c 65 2c 20 | 6e 61 6d 65 29 3b 0d 23 |t_file, |name);.#|
|000040a0| 69 66 20 30 0d 20 20 66 | 6f 72 20 28 64 20 3d 20 |if 0. f|or (d = |
|000040b0| 65 71 75 69 76 61 6c 65 | 6e 74 73 3b 20 64 3b 20 |equivale|nts; d; |
|000040c0| 64 20 3d 20 54 52 45 45 | 5f 43 48 41 49 4e 20 28 |d = TREE|_CHAIN (|
|000040d0| 64 29 29 0d 20 20 20 20 | 7b 0d 20 20 20 20 20 20 |d)). |{. |
|000040e0| 74 72 65 65 20 65 20 3d | 20 54 52 45 45 5f 56 41 |tree e =| TREE_VA|
|000040f0| 4c 55 45 20 28 64 29 3b | 0d 20 20 20 20 20 20 69 |LUE (d);|. i|
|00004100| 66 20 28 54 52 45 45 5f | 50 55 42 4c 49 43 20 28 |f (TREE_|PUBLIC (|
|00004110| 65 29 20 26 26 20 44 45 | 43 4c 5f 4e 41 4d 45 20 |e) && DE|CL_NAME |
|00004120| 28 65 29 29 0d 09 41 53 | 4d 5f 47 4c 4f 42 41 4c |(e))..AS|M_GLOBAL|
|00004130| 49 5a 45 5f 4c 41 42 45 | 4c 20 28 61 73 6d 5f 6f |IZE_LABE|L (asm_o|
|00004140| 75 74 5f 66 69 6c 65 2c | 0d 09 09 09 20 20 20 20 |ut_file,|.... |
|00004150| 20 58 53 54 52 20 28 58 | 45 58 50 20 28 44 45 43 | XSTR (X|EXP (DEC|
|00004160| 4c 5f 52 54 4c 20 28 65 | 29 2c 20 30 29 2c 20 30 |L_RTL (e|), 0), 0|
|00004170| 29 29 3b 0d 20 20 20 20 | 7d 0d 23 65 6e 64 69 66 |));. |}.#endif|
|00004180| 0d 0d 20 20 2f 2a 20 4f | 75 74 70 75 74 20 61 6e |.. /* O|utput an|
|00004190| 79 20 64 61 74 61 20 74 | 68 61 74 20 77 65 20 77 |y data t|hat we w|
|000041a0| 69 6c 6c 20 6e 65 65 64 | 20 74 6f 20 75 73 65 20 |ill need| to use |
|000041b0| 74 68 65 20 61 64 64 72 | 65 73 73 20 6f 66 2e 20 |the addr|ess of. |
|000041c0| 20 2a 2f 0d 20 20 69 66 | 20 28 44 45 43 4c 5f 49 | */. if| (DECL_I|
|000041d0| 4e 49 54 49 41 4c 20 28 | 64 65 63 6c 29 29 0d 20 |NITIAL (|decl)). |
|000041e0| 20 20 20 6f 75 74 70 75 | 74 5f 61 64 64 72 65 73 | outpu|t_addres|
|000041f0| 73 65 64 5f 63 6f 6e 73 | 74 61 6e 74 73 20 28 44 |sed_cons|tants (D|
|00004200| 45 43 4c 5f 49 4e 49 54 | 49 41 4c 20 28 64 65 63 |ECL_INIT|IAL (dec|
|00004210| 6c 29 29 3b 0d 0d 23 69 | 66 64 65 66 20 41 50 50 |l));..#i|fdef APP|
|00004220| 4c 45 5f 48 41 58 0d 20 | 20 64 65 66 69 6e 65 5f |LE_HAX. | define_|
|00004230| 61 5f 76 61 72 69 61 62 | 6c 65 20 28 6e 61 6d 65 |a_variab|le (name|
|00004240| 29 3b 0d 20 20 2f 2a 20 | 44 6f 20 61 6e 79 20 6d |);. /* |Do any m|
|00004250| 61 63 68 69 6e 65 2f 73 | 79 73 74 65 6d 20 64 65 |achine/s|ystem de|
|00004260| 70 65 6e 64 65 6e 74 20 | 70 72 6f 63 65 73 73 69 |pendent |processi|
|00004270| 6e 67 20 6f 66 20 74 68 | 65 20 76 61 72 69 61 62 |ng of th|e variab|
|00004280| 6c 65 20 6e 61 6d 65 2e | 20 2a 2f 0d 23 69 66 64 |le name.| */.#ifd|
|00004290| 65 66 20 41 53 4d 5f 44 | 45 43 4c 41 52 45 5f 56 |ef ASM_D|ECLARE_V|
|000042a0| 41 52 49 41 42 4c 45 5f | 4e 41 4d 45 0d 20 20 41 |ARIABLE_|NAME. A|
|000042b0| 53 4d 5f 44 45 43 4c 41 | 52 45 5f 56 41 52 49 41 |SM_DECLA|RE_VARIA|
|000042c0| 42 4c 45 5f 4e 41 4d 45 | 20 28 61 73 6d 5f 6f 75 |BLE_NAME| (asm_ou|
|000042d0| 74 5f 66 69 6c 65 2c 20 | 6e 61 6d 65 2c 20 54 52 |t_file, |name, TR|
|000042e0| 45 45 5f 50 55 42 4c 49 | 43 20 28 64 65 63 6c 29 |EE_PUBLI|C (decl)|
|000042f0| 29 3b 0d 23 65 6e 64 69 | 66 0d 23 65 6e 64 69 66 |);.#endi|f.#endif|
|00004300| 20 2f 2a 20 41 50 50 4c | 45 5f 48 41 58 20 2a 2f | /* APPL|E_HAX */|
|00004310| 0d 0d 20 20 2f 2a 20 53 | 77 69 74 63 68 20 74 6f |.. /* S|witch to|
|00004320| 20 74 68 65 20 70 72 6f | 70 65 72 20 73 65 63 74 | the pro|per sect|
|00004330| 69 6f 6e 20 66 6f 72 20 | 74 68 69 73 20 64 61 74 |ion for |this dat|
|00004340| 61 2e 20 20 2a 2f 0d 23 | 69 66 64 65 66 20 53 45 |a. */.#|ifdef SE|
|00004350| 4c 45 43 54 5f 53 45 43 | 54 49 4f 4e 0d 20 20 53 |LECT_SEC|TION. S|
|00004360| 45 4c 45 43 54 5f 53 45 | 43 54 49 4f 4e 20 28 64 |ELECT_SE|CTION (d|
|00004370| 65 63 6c 29 3b 0d 23 65 | 6c 73 65 0d 20 20 69 66 |ecl);.#e|lse. if|
|00004380| 20 28 54 52 45 45 5f 52 | 45 41 44 4f 4e 4c 59 20 | (TREE_R|EADONLY |
|00004390| 28 64 65 63 6c 29 20 26 | 26 20 21 20 54 52 45 45 |(decl) &|& ! TREE|
|000043a0| 5f 56 4f 4c 41 54 49 4c | 45 20 28 64 65 63 6c 29 |_VOLATIL|E (decl)|
|000043b0| 29 0d 20 20 20 20 74 65 | 78 74 5f 73 65 63 74 69 |). te|xt_secti|
|000043c0| 6f 6e 20 28 29 3b 0d 20 | 20 65 6c 73 65 0d 20 20 |on ();. | else. |
|000043d0| 20 20 64 61 74 61 5f 73 | 65 63 74 69 6f 6e 20 28 | data_s|ection (|
|000043e0| 29 3b 0d 23 65 6e 64 69 | 66 0d 0d 20 20 2f 2a 20 |);.#endi|f.. /* |
|000043f0| 4f 75 74 70 75 74 20 74 | 68 65 20 61 6c 69 67 6e |Output t|he align|
|00004400| 6d 65 6e 74 20 6f 66 20 | 74 68 69 73 20 64 61 74 |ment of |this dat|
|00004410| 61 2e 20 20 2a 2f 0d 20 | 20 66 6f 72 20 28 69 20 |a. */. | for (i |
|00004420| 3d 20 30 3b 20 44 45 43 | 4c 5f 41 4c 49 47 4e 20 |= 0; DEC|L_ALIGN |
|00004430| 28 64 65 63 6c 29 20 3e | 3d 20 42 49 54 53 5f 50 |(decl) >|= BITS_P|
|00004440| 45 52 5f 55 4e 49 54 20 | 3c 3c 20 28 69 20 2b 20 |ER_UNIT |<< (i + |
|00004450| 31 29 3b 20 69 2b 2b 29 | 3b 0d 20 20 69 66 20 28 |1); i++)|;. if (|
|00004460| 69 20 3e 20 30 29 0d 20 | 20 20 20 41 53 4d 5f 4f |i > 0). | ASM_O|
|00004470| 55 54 50 55 54 5f 41 4c | 49 47 4e 20 28 61 73 6d |UTPUT_AL|IGN (asm|
|00004480| 5f 6f 75 74 5f 66 69 6c | 65 2c 20 69 29 3b 0d 0d |_out_fil|e, i);..|
|00004490| 20 20 2f 2a 20 4f 75 74 | 70 75 74 20 74 68 65 20 | /* Out|put the |
|000044a0| 6e 61 6d 65 28 73 29 20 | 6f 66 20 74 68 69 73 20 |name(s) |of this |
|000044b0| 64 61 74 61 2e 20 20 2a | 2f 0d 20 20 41 53 4d 5f |data. *|/. ASM_|
|000044c0| 4f 55 54 50 55 54 5f 4c | 41 42 45 4c 20 28 61 73 |OUTPUT_L|ABEL (as|
|000044d0| 6d 5f 6f 75 74 5f 66 69 | 6c 65 2c 20 6e 61 6d 65 |m_out_fi|le, name|
|000044e0| 29 3b 0d 23 69 66 20 30 | 0d 20 20 66 6f 72 20 28 |);.#if 0|. for (|
|000044f0| 64 20 3d 20 65 71 75 69 | 76 61 6c 65 6e 74 73 3b |d = equi|valents;|
|00004500| 20 64 3b 20 64 20 3d 20 | 54 52 45 45 5f 43 48 41 | d; d = |TREE_CHA|
|00004510| 49 4e 20 28 64 29 29 0d | 20 20 20 20 7b 0d 20 20 |IN (d)).| {. |
|00004520| 20 20 20 20 74 72 65 65 | 20 65 20 3d 20 54 52 45 | tree| e = TRE|
|00004530| 45 5f 56 41 4c 55 45 20 | 28 64 29 3b 0d 20 20 20 |E_VALUE |(d);. |
|00004540| 20 20 20 41 53 4d 5f 4f | 55 54 50 55 54 5f 4c 41 | ASM_O|UTPUT_LA|
|00004550| 42 45 4c 20 28 61 73 6d | 5f 6f 75 74 5f 66 69 6c |BEL (asm|_out_fil|
|00004560| 65 2c 20 58 53 54 52 20 | 28 58 45 58 50 20 28 44 |e, XSTR |(XEXP (D|
|00004570| 45 43 4c 5f 52 54 4c 20 | 28 65 29 2c 20 30 29 2c |ECL_RTL |(e), 0),|
|00004580| 20 30 29 29 3b 0d 20 20 | 20 20 7d 0d 23 65 6e 64 | 0));. | }.#end|
|00004590| 69 66 0d 0d 20 20 69 66 | 20 28 44 45 43 4c 5f 49 |if.. if| (DECL_I|
|000045a0| 4e 49 54 49 41 4c 20 28 | 64 65 63 6c 29 29 0d 20 |NITIAL (|decl)). |
|000045b0| 20 20 20 2f 2a 20 4f 75 | 74 70 75 74 20 74 68 65 | /* Ou|tput the|
|000045c0| 20 61 63 74 75 61 6c 20 | 64 61 74 61 2e 20 20 2a | actual |data. *|
|000045d0| 2f 0d 20 20 20 20 6f 75 | 74 70 75 74 5f 63 6f 6e |/. ou|tput_con|
|000045e0| 73 74 61 6e 74 20 28 44 | 45 43 4c 5f 49 4e 49 54 |stant (D|ECL_INIT|
|000045f0| 49 41 4c 20 28 64 65 63 | 6c 29 2c 20 69 6e 74 5f |IAL (dec|l), int_|
|00004600| 73 69 7a 65 5f 69 6e 5f | 62 79 74 65 73 20 28 54 |size_in_|bytes (T|
|00004610| 52 45 45 5f 54 59 50 45 | 20 28 64 65 63 6c 29 29 |REE_TYPE| (decl))|
|00004620| 29 3b 0d 20 20 65 6c 73 | 65 0d 20 20 20 20 2f 2a |);. els|e. /*|
|00004630| 20 4c 65 61 76 65 20 73 | 70 61 63 65 20 66 6f 72 | Leave s|pace for|
|00004640| 20 69 74 2e 20 20 2a 2f | 0d 20 20 20 20 41 53 4d | it. */|. ASM|
|00004650| 5f 4f 55 54 50 55 54 5f | 53 4b 49 50 20 28 61 73 |_OUTPUT_|SKIP (as|
|00004660| 6d 5f 6f 75 74 5f 66 69 | 6c 65 2c 20 69 6e 74 5f |m_out_fi|le, int_|
|00004670| 73 69 7a 65 5f 69 6e 5f | 62 79 74 65 73 20 28 54 |size_in_|bytes (T|
|00004680| 52 45 45 5f 54 59 50 45 | 20 28 64 65 63 6c 29 29 |REE_TYPE| (decl))|
|00004690| 29 3b 0d 23 69 66 64 65 | 66 20 41 50 50 4c 45 5f |);.#ifde|f APPLE_|
|000046a0| 48 41 58 0d 20 20 2f 2a | 20 4d 61 79 62 65 20 64 |HAX. /*| Maybe d|
|000046b0| 6f 20 73 6f 6d 65 74 68 | 69 6e 67 20 74 6f 20 63 |o someth|ing to c|
|000046c0| 6c 6f 73 65 20 6f 75 74 | 20 74 68 65 20 64 65 66 |lose out| the def|
|000046d0| 69 6e 69 74 69 6f 6e 20 | 6f 66 20 61 20 76 61 72 |inition |of a var|
|000046e0| 69 61 62 6c 65 2e 20 2a | 2f 0d 23 69 66 64 65 66 |iable. *|/.#ifdef|
|000046f0| 20 41 53 4d 5f 56 41 52 | 49 41 42 4c 45 5f 45 4e | ASM_VAR|IABLE_EN|
|00004700| 44 0d 20 20 41 53 4d 5f | 56 41 52 49 41 42 4c 45 |D. ASM_|VARIABLE|
|00004710| 5f 45 4e 44 20 28 61 73 | 6d 5f 6f 75 74 5f 66 69 |_END (as|m_out_fi|
|00004720| 6c 65 2c 20 6e 61 6d 65 | 29 3b 0d 23 65 6e 64 69 |le, name|);.#endi|
|00004730| 66 0d 23 65 6e 64 69 66 | 20 2f 2a 20 41 50 50 4c |f.#endif| /* APPL|
|00004740| 45 5f 48 41 58 20 2a 2f | 0d 7d 0d 0d 2f 2a 20 4f |E_HAX */|.}../* O|
|00004750| 75 74 70 75 74 20 73 6f | 6d 65 74 68 69 6e 67 20 |utput so|mething |
|00004760| 74 6f 20 64 65 63 6c 61 | 72 65 20 61 6e 20 65 78 |to decla|re an ex|
|00004770| 74 65 72 6e 61 6c 20 73 | 79 6d 62 6f 6c 20 74 6f |ternal s|ymbol to|
|00004780| 20 74 68 65 20 61 73 73 | 65 6d 62 6c 65 72 2e 0d | the ass|embler..|
|00004790| 20 20 20 28 4d 6f 73 74 | 20 61 73 73 65 6d 62 6c | (Most| assembl|
|000047a0| 65 72 73 20 64 6f 6e 27 | 74 20 6e 65 65 64 20 74 |ers don'|t need t|
|000047b0| 68 69 73 2c 20 73 6f 20 | 77 65 20 6e 6f 72 6d 61 |his, so |we norma|
|000047c0| 6c 6c 79 20 6f 75 74 70 | 75 74 20 6e 6f 74 68 69 |lly outp|ut nothi|
|000047d0| 6e 67 2e 29 20 20 2a 2f | 0d 0d 76 6f 69 64 0d 61 |ng.) */|..void.a|
|000047e0| 73 73 65 6d 62 6c 65 5f | 65 78 74 65 72 6e 61 6c |ssemble_|external|
|000047f0| 20 28 64 65 63 6c 29 0d | 20 20 20 20 20 74 72 65 | (decl).| tre|
|00004800| 65 20 64 65 63 6c 3b 0d | 7b 0d 20 20 72 74 78 20 |e decl;.|{. rtx |
|00004810| 72 74 6c 20 3d 20 44 45 | 43 4c 5f 52 54 4c 20 28 |rtl = DE|CL_RTL (|
|00004820| 64 65 63 6c 29 3b 0d 0d | 20 20 69 66 20 28 47 45 |decl);..| if (GE|
|00004830| 54 5f 43 4f 44 45 20 28 | 72 74 6c 29 20 3d 3d 20 |T_CODE (|rtl) == |
|00004840| 4d 45 4d 20 26 26 20 47 | 45 54 5f 43 4f 44 45 20 |MEM && G|ET_CODE |
|00004850| 28 58 45 58 50 20 28 72 | 74 6c 2c 20 30 29 29 20 |(XEXP (r|tl, 0)) |
|00004860| 3d 3d 20 53 59 4d 42 4f | 4c 5f 52 45 46 29 0d 20 |== SYMBO|L_REF). |
|00004870| 20 20 20 7b 0d 23 69 66 | 64 65 66 20 41 53 4d 5f | {.#if|def ASM_|
|00004880| 4f 55 54 50 55 54 5f 45 | 58 54 45 52 4e 41 4c 0d |OUTPUT_E|XTERNAL.|
|00004890| 20 20 20 20 20 20 2f 2a | 20 53 6f 6d 65 20 73 79 | /*| Some sy|
|000048a0| 73 74 65 6d 73 20 64 6f | 20 72 65 71 75 69 72 65 |stems do| require|
|000048b0| 20 73 6f 6d 65 20 6f 75 | 74 70 75 74 2e 20 20 2a | some ou|tput. *|
|000048c0| 2f 0d 20 20 20 20 20 20 | 41 53 4d 5f 4f 55 54 50 |/. |ASM_OUTP|
|000048d0| 55 54 5f 45 58 54 45 52 | 4e 41 4c 20 28 61 73 6d |UT_EXTER|NAL (asm|
|000048e0| 5f 6f 75 74 5f 66 69 6c | 65 2c 20 64 65 63 6c 2c |_out_fil|e, decl,|
|000048f0| 20 58 53 54 52 20 28 58 | 45 58 50 20 28 72 74 6c | XSTR (X|EXP (rtl|
|00004900| 2c 20 30 29 2c 20 30 29 | 29 3b 0d 23 65 6e 64 69 |, 0), 0)|);.#endi|
|00004910| 66 0d 20 20 20 20 7d 0d | 7d 0d 0d 2f 2a 20 4f 75 |f. }.|}../* Ou|
|00004920| 74 70 75 74 20 74 6f 20 | 46 49 4c 45 20 61 20 72 |tput to |FILE a r|
|00004930| 65 66 65 72 65 6e 63 65 | 20 74 6f 20 74 68 65 20 |eference| to the |
|00004940| 61 73 73 65 6d 62 6c 65 | 72 20 6e 61 6d 65 20 6f |assemble|r name o|
|00004950| 66 20 61 20 43 2d 6c 65 | 76 65 6c 20 6e 61 6d 65 |f a C-le|vel name|
|00004960| 20 4e 41 4d 45 2e 0d 20 | 20 20 49 66 20 4e 41 4d | NAME.. | If NAM|
|00004970| 45 20 73 74 61 72 74 73 | 20 77 69 74 68 20 61 20 |E starts| with a |
|00004980| 2a 2c 20 74 68 65 20 72 | 65 73 74 20 6f 66 20 4e |*, the r|est of N|
|00004990| 41 4d 45 20 69 73 20 6f | 75 74 70 75 74 20 76 65 |AME is o|utput ve|
|000049a0| 72 62 61 74 69 6d 2e 0d | 20 20 20 4f 74 68 65 72 |rbatim..| Other|
|000049b0| 77 69 73 65 20 4e 41 4d | 45 20 69 73 20 74 72 61 |wise NAM|E is tra|
|000049c0| 6e 73 66 6f 72 6d 65 64 | 20 69 6e 20 61 6e 20 69 |nsformed| in an i|
|000049d0| 6d 70 6c 65 6d 65 6e 74 | 61 74 69 6f 6e 2d 64 65 |mplement|ation-de|
|000049e0| 66 69 6e 65 64 20 77 61 | 79 0d 20 20 20 28 75 73 |fined wa|y. (us|
|000049f0| 75 61 6c 6c 79 20 62 79 | 20 74 68 65 20 61 64 64 |ually by| the add|
|00004a00| 69 74 69 6f 6e 20 6f 66 | 20 61 6e 20 75 6e 64 65 |ition of| an unde|
|00004a10| 72 73 63 6f 72 65 29 2e | 0d 20 20 20 4d 61 6e 79 |rscore).|. Many|
|00004a20| 20 6d 61 63 72 6f 73 20 | 69 6e 20 74 68 65 20 74 | macros |in the t|
|00004a30| 6d 20 66 69 6c 65 20 61 | 72 65 20 64 65 66 69 6e |m file a|re defin|
|00004a40| 65 64 20 74 6f 20 63 61 | 6c 6c 20 74 68 69 73 20 |ed to ca|ll this |
|00004a50| 66 75 6e 63 74 69 6f 6e | 2e 20 20 2a 2f 0d 0d 76 |function|. */..v|
|00004a60| 6f 69 64 0d 61 73 73 65 | 6d 62 6c 65 5f 6e 61 6d |oid.asse|mble_nam|
|00004a70| 65 20 28 66 69 6c 65 2c | 20 6e 61 6d 65 29 0d 20 |e (file,| name). |
|00004a80| 20 20 20 20 46 49 4c 45 | 20 2a 66 69 6c 65 3b 0d | FILE| *file;.|
|00004a90| 20 20 20 20 20 63 68 61 | 72 20 2a 6e 61 6d 65 3b | cha|r *name;|
|00004aa0| 0d 7b 0d 20 20 69 66 20 | 28 6e 61 6d 65 5b 30 5d |.{. if |(name[0]|
|00004ab0| 20 3d 3d 20 27 2a 27 29 | 0d 20 20 20 20 66 70 75 | == '*')|. fpu|
|00004ac0| 74 73 20 28 26 6e 61 6d | 65 5b 31 5d 2c 20 66 69 |ts (&nam|e[1], fi|
|00004ad0| 6c 65 29 3b 0d 20 20 65 | 6c 73 65 0d 20 20 20 20 |le);. e|lse. |
|00004ae0| 41 53 4d 5f 4f 55 54 50 | 55 54 5f 4c 41 42 45 4c |ASM_OUTP|UT_LABEL|
|00004af0| 52 45 46 20 28 66 69 6c | 65 2c 20 6e 61 6d 65 29 |REF (fil|e, name)|
|00004b00| 3b 0d 7d 0d 0d 2f 2a 20 | 41 6c 6c 6f 63 61 74 65 |;.}../* |Allocate|
|00004b10| 20 53 49 5a 45 20 62 79 | 74 65 73 20 77 72 69 74 | SIZE by|tes writ|
|00004b20| 61 62 6c 65 20 73 74 61 | 74 69 63 20 73 70 61 63 |able sta|tic spac|
|00004b30| 65 20 77 69 74 68 20 61 | 20 67 65 6e 73 79 6d 20 |e with a| gensym |
|00004b40| 6e 61 6d 65 0d 20 20 20 | 61 6e 64 20 72 65 74 75 |name. |and retu|
|00004b50| 72 6e 20 61 6e 20 52 54 | 58 20 74 6f 20 72 65 66 |rn an RT|X to ref|
|00004b60| 65 72 20 74 6f 20 69 74 | 73 20 61 64 64 72 65 73 |er to it|s addres|
|00004b70| 73 2e 20 20 2a 2f 0d 0d | 72 74 78 0d 61 73 73 65 |s. */..|rtx.asse|
|00004b80| 6d 62 6c 65 5f 73 74 61 | 74 69 63 5f 73 70 61 63 |mble_sta|tic_spac|
|00004b90| 65 20 28 73 69 7a 65 29 | 0d 20 20 20 20 20 69 6e |e (size)|. in|
|00004ba0| 74 20 73 69 7a 65 3b 0d | 7b 0d 20 20 63 68 61 72 |t size;.|{. char|
|00004bb0| 20 6e 61 6d 65 5b 31 32 | 5d 3b 0d 20 20 63 68 61 | name[12|];. cha|
|00004bc0| 72 20 2a 6e 61 6d 65 73 | 74 72 69 6e 67 3b 0d 20 |r *names|tring;. |
|00004bd0| 20 72 74 78 20 78 3b 0d | 20 20 2f 2a 20 52 6f 75 | rtx x;.| /* Rou|
|00004be0| 6e 64 20 73 69 7a 65 20 | 75 70 20 74 6f 20 6d 75 |nd size |up to mu|
|00004bf0| 6c 74 69 70 6c 65 20 6f | 66 20 42 49 47 47 45 53 |ltiple o|f BIGGES|
|00004c00| 54 5f 41 4c 49 47 4e 4d | 45 4e 54 20 62 69 74 73 |T_ALIGNM|ENT bits|
|00004c10| 0d 20 20 20 20 20 73 6f | 20 74 68 61 74 20 65 61 |. so| that ea|
|00004c20| 63 68 20 75 6e 69 6e 69 | 74 69 61 6c 69 7a 65 64 |ch unini|tialized|
|00004c30| 20 6f 62 6a 65 63 74 20 | 73 74 61 72 74 73 20 6f | object |starts o|
|00004c40| 6e 20 73 75 63 68 20 61 | 20 62 6f 75 6e 64 61 72 |n such a| boundar|
|00004c50| 79 2e 20 20 2a 2f 0d 20 | 20 69 6e 74 20 72 6f 75 |y. */. | int rou|
|00004c60| 6e 64 65 64 20 3d 20 28 | 28 73 69 7a 65 20 2b 20 |nded = (|(size + |
|00004c70| 28 42 49 47 47 45 53 54 | 5f 41 4c 49 47 4e 4d 45 |(BIGGEST|_ALIGNME|
|00004c80| 4e 54 20 2f 20 42 49 54 | 53 5f 50 45 52 5f 55 4e |NT / BIT|S_PER_UN|
|00004c90| 49 54 29 20 2d 20 31 29 | 0d 09 09 20 2f 20 28 42 |IT) - 1)|... / (B|
|00004ca0| 49 47 47 45 53 54 5f 41 | 4c 49 47 4e 4d 45 4e 54 |IGGEST_A|LIGNMENT|
|00004cb0| 20 2f 20 42 49 54 53 5f | 50 45 52 5f 55 4e 49 54 | / BITS_|PER_UNIT|
|00004cc0| 29 0d 09 09 20 2a 20 28 | 42 49 47 47 45 53 54 5f |)... * (|BIGGEST_|
|00004cd0| 41 4c 49 47 4e 4d 45 4e | 54 20 2f 20 42 49 54 53 |ALIGNMEN|T / BITS|
|00004ce0| 5f 50 45 52 5f 55 4e 49 | 54 29 29 3b 0d 0d 20 20 |_PER_UNI|T));.. |
|00004cf0| 69 66 20 28 66 6c 61 67 | 5f 73 68 61 72 65 64 5f |if (flag|_shared_|
|00004d00| 64 61 74 61 29 0d 20 20 | 20 20 64 61 74 61 5f 73 |data). | data_s|
|00004d10| 65 63 74 69 6f 6e 20 28 | 29 3b 0d 20 20 41 53 4d |ection (|);. ASM|
|00004d20| 5f 47 45 4e 45 52 41 54 | 45 5f 49 4e 54 45 52 4e |_GENERAT|E_INTERN|
|00004d30| 41 4c 5f 4c 41 42 45 4c | 20 28 6e 61 6d 65 2c 20 |AL_LABEL| (name, |
|00004d40| 22 4c 46 22 2c 20 63 6f | 6e 73 74 5f 6c 61 62 65 |"LF", co|nst_labe|
|00004d50| 6c 6e 6f 29 3b 0d 20 20 | 2b 2b 63 6f 6e 73 74 5f |lno);. |++const_|
|00004d60| 6c 61 62 65 6c 6e 6f 3b | 0d 0d 20 20 6e 61 6d 65 |labelno;|.. name|
|00004d70| 73 74 72 69 6e 67 20 3d | 20 28 63 68 61 72 20 2a |string =| (char *|
|00004d80| 29 20 6f 62 73 74 61 63 | 6b 5f 61 6c 6c 6f 63 20 |) obstac|k_alloc |
|00004d90| 28 73 61 76 65 61 62 6c | 65 5f 6f 62 73 74 61 63 |(saveabl|e_obstac|
|00004da0| 6b 2c 0d 09 09 09 09 20 | 20 20 20 20 20 20 73 74 |k,..... | st|
|00004db0| 72 6c 65 6e 20 28 6e 61 | 6d 65 29 20 2b 20 32 29 |rlen (na|me) + 2)|
|00004dc0| 3b 0d 20 20 73 74 72 63 | 70 79 20 28 6e 61 6d 65 |;. strc|py (name|
|00004dd0| 73 74 72 69 6e 67 2c 20 | 6e 61 6d 65 29 3b 0d 0d |string, |name);..|
|00004de0| 20 20 78 20 3d 20 67 65 | 6e 5f 72 74 78 20 28 53 | x = ge|n_rtx (S|
|00004df0| 59 4d 42 4f 4c 5f 52 45 | 46 2c 20 50 6d 6f 64 65 |YMBOL_RE|F, Pmode|
|00004e00| 2c 20 6e 61 6d 65 73 74 | 72 69 6e 67 29 3b 0d 20 |, namest|ring);. |
|00004e10| 20 41 53 4d 5f 4f 55 54 | 50 55 54 5f 4c 4f 43 41 | ASM_OUT|PUT_LOCA|
|00004e20| 4c 20 28 61 73 6d 5f 6f | 75 74 5f 66 69 6c 65 2c |L (asm_o|ut_file,|
|00004e30| 20 6e 61 6d 65 2c 20 73 | 69 7a 65 2c 20 72 6f 75 | name, s|ize, rou|
|00004e40| 6e 64 65 64 29 3b 0d 20 | 20 72 65 74 75 72 6e 20 |nded);. | return |
|00004e50| 78 3b 0d 7d 0d 0c 0d 2f | 2a 20 48 65 72 65 20 77 |x;.}.../|* Here w|
|00004e60| 65 20 63 6f 6d 62 69 6e | 65 20 64 75 70 6c 69 63 |e combin|e duplic|
|00004e70| 61 74 65 20 66 6c 6f 61 | 74 69 6e 67 20 63 6f 6e |ate floa|ting con|
|00004e80| 73 74 61 6e 74 73 20 74 | 6f 20 6d 61 6b 65 0d 20 |stants t|o make. |
|00004e90| 20 20 43 4f 4e 53 54 5f | 44 4f 55 42 4c 45 20 72 | CONST_|DOUBLE r|
|00004ea0| 74 78 27 73 2c 20 61 6e | 64 20 66 6f 72 63 65 20 |tx's, an|d force |
|00004eb0| 74 68 6f 73 65 20 6f 75 | 74 20 74 6f 20 6d 65 6d |those ou|t to mem|
|00004ec0| 6f 72 79 20 77 68 65 6e | 20 6e 65 63 65 73 73 61 |ory when| necessa|
|00004ed0| 72 79 2e 20 20 2a 2f 0d | 0d 2f 2a 20 43 68 61 69 |ry. */.|./* Chai|
|00004ee0| 6e 20 6f 66 20 61 6c 6c | 20 43 4f 4e 53 54 5f 44 |n of all| CONST_D|
|00004ef0| 4f 55 42 4c 45 20 72 74 | 78 27 73 20 63 6f 6e 73 |OUBLE rt|x's cons|
|00004f00| 74 72 75 63 74 65 64 20 | 66 6f 72 20 74 68 65 20 |tructed |for the |
|00004f10| 63 75 72 72 65 6e 74 20 | 66 75 6e 63 74 69 6f 6e |current |function|
|00004f20| 2e 0d 20 20 20 54 68 65 | 79 20 61 72 65 20 63 68 |.. The|y are ch|
|00004f30| 61 69 6e 65 64 20 74 68 | 72 6f 75 67 68 20 74 68 |ained th|rough th|
|00004f40| 65 20 43 4f 4e 53 54 5f | 44 4f 55 42 4c 45 5f 43 |e CONST_|DOUBLE_C|
|00004f50| 48 41 49 4e 2e 0d 20 20 | 20 41 20 43 4f 4e 53 54 |HAIN.. | A CONST|
|00004f60| 5f 44 4f 55 42 4c 45 20 | 72 74 78 20 68 61 73 20 |_DOUBLE |rtx has |
|00004f70| 43 4f 4e 53 54 5f 44 4f | 55 42 4c 45 5f 4d 45 4d |CONST_DO|UBLE_MEM|
|00004f80| 20 21 3d 20 63 63 30 5f | 72 74 78 20 69 66 66 20 | != cc0_|rtx iff |
|00004f90| 69 74 20 69 73 20 6f 6e | 20 74 68 69 73 20 63 68 |it is on| this ch|
|00004fa0| 61 69 6e 2e 0d 20 20 20 | 49 6e 20 74 68 61 74 20 |ain.. |In that |
|00004fb0| 63 61 73 65 2c 20 43 4f | 4e 53 54 5f 44 4f 55 42 |case, CO|NST_DOUB|
|00004fc0| 4c 45 5f 4d 45 4d 20 69 | 73 20 65 69 74 68 65 72 |LE_MEM i|s either|
|00004fd0| 20 61 20 4d 45 4d 2c 0d | 20 20 20 6f 72 20 63 6f | a MEM,.| or co|
|00004fe0| 6e 73 74 30 5f 72 74 78 | 20 69 66 20 6e 6f 20 4d |nst0_rtx| if no M|
|00004ff0| 45 4d 20 68 61 73 20 62 | 65 65 6e 20 6d 61 64 65 |EM has b|een made|
|00005000| 20 66 6f 72 20 74 68 69 | 73 20 43 4f 4e 53 54 5f | for thi|s CONST_|
|00005010| 44 4f 55 42 4c 45 20 79 | 65 74 2e 20 20 2a 2f 0d |DOUBLE y|et. */.|
|00005020| 0d 73 74 61 74 69 63 20 | 72 74 78 20 72 65 61 6c |.static |rtx real|
|00005030| 5f 63 6f 6e 73 74 61 6e | 74 5f 63 68 61 69 6e 3b |_constan|t_chain;|
|00005040| 0d 0d 2f 2a 20 52 65 74 | 75 72 6e 20 61 20 43 4f |../* Ret|urn a CO|
|00005050| 4e 53 54 5f 44 4f 55 42 | 4c 45 20 66 6f 72 20 61 |NST_DOUB|LE for a|
|00005060| 20 76 61 6c 75 65 20 73 | 70 65 63 69 66 69 65 64 | value s|pecified|
|00005070| 20 61 73 20 61 20 70 61 | 69 72 20 6f 66 20 69 6e | as a pa|ir of in|
|00005080| 74 73 2e 0d 20 20 20 46 | 6f 72 20 61 6e 20 69 6e |ts.. F|or an in|
|00005090| 74 65 67 65 72 2c 20 49 | 30 20 69 73 20 74 68 65 |teger, I|0 is the|
|000050a0| 20 6c 6f 77 2d 6f 72 64 | 65 72 20 77 6f 72 64 20 | low-ord|er word |
|000050b0| 61 6e 64 20 49 31 20 69 | 73 20 74 68 65 20 68 69 |and I1 i|s the hi|
|000050c0| 67 68 2d 6f 72 64 65 72 | 20 77 6f 72 64 2e 0d 20 |gh-order| word.. |
|000050d0| 20 20 46 6f 72 20 61 20 | 72 65 61 6c 20 6e 75 6d | For a |real num|
|000050e0| 62 65 72 2c 20 49 30 20 | 69 73 20 74 68 65 20 77 |ber, I0 |is the w|
|000050f0| 6f 72 64 20 77 69 74 68 | 20 74 68 65 20 6c 6f 77 |ord with| the low|
|00005100| 20 61 64 64 72 65 73 73 | 0d 20 20 20 61 6e 64 20 | address|. and |
|00005110| 49 31 20 69 73 20 74 68 | 65 20 77 6f 72 64 20 77 |I1 is th|e word w|
|00005120| 69 74 68 20 74 68 65 20 | 68 69 67 68 20 61 64 64 |ith the |high add|
|00005130| 72 65 73 73 2e 20 20 2a | 2f 0d 0d 72 74 78 0d 69 |ress. *|/..rtx.i|
|00005140| 6d 6d 65 64 5f 64 6f 75 | 62 6c 65 5f 63 6f 6e 73 |mmed_dou|ble_cons|
|00005150| 74 20 28 69 30 2c 20 69 | 31 2c 20 6d 6f 64 65 29 |t (i0, i|1, mode)|
|00005160| 0d 20 20 20 20 20 69 6e | 74 20 69 30 2c 20 69 31 |. in|t i0, i1|
|00005170| 3b 0d 20 20 20 20 20 65 | 6e 75 6d 20 6d 61 63 68 |;. e|num mach|
|00005180| 69 6e 65 5f 6d 6f 64 65 | 20 6d 6f 64 65 3b 0d 7b |ine_mode| mode;.{|
|00005190| 0d 20 20 72 65 67 69 73 | 74 65 72 20 72 74 78 20 |. regis|ter rtx |
|000051a0| 72 3b 0d 0d 20 20 69 66 | 20 28 6d 6f 64 65 20 3d |r;.. if| (mode =|
|000051b0| 3d 20 44 49 6d 6f 64 65 | 20 26 26 20 69 30 20 3d |= DImode| && i0 =|
|000051c0| 3d 20 30 20 26 26 20 69 | 31 20 3d 3d 20 30 29 0d |= 0 && i|1 == 0).|
|000051d0| 20 20 20 20 72 65 74 75 | 72 6e 20 63 6f 6e 73 74 | retu|rn const|
|000051e0| 30 5f 72 74 78 3b 0d 0d | 20 20 2f 2a 20 53 65 61 |0_rtx;..| /* Sea|
|000051f0| 72 63 68 20 74 68 65 20 | 63 68 61 69 6e 20 66 6f |rch the |chain fo|
|00005200| 72 20 61 6e 20 65 78 69 | 73 74 69 6e 67 20 43 4f |r an exi|sting CO|
|00005210| 4e 53 54 5f 44 4f 55 42 | 4c 45 20 77 69 74 68 20 |NST_DOUB|LE with |
|00005220| 74 68 65 20 72 69 67 68 | 74 20 76 61 6c 75 65 2e |the righ|t value.|
|00005230| 0d 20 20 20 20 20 49 66 | 20 6f 6e 65 20 69 73 20 |. If| one is |
|00005240| 66 6f 75 6e 64 2c 20 72 | 65 74 75 72 6e 20 69 74 |found, r|eturn it|
|00005250| 2e 20 20 2a 2f 0d 0d 20 | 20 66 6f 72 20 28 72 20 |. */.. | for (r |
|00005260| 3d 20 72 65 61 6c 5f 63 | 6f 6e 73 74 61 6e 74 5f |= real_c|onstant_|
|00005270| 63 68 61 69 6e 3b 20 72 | 3b 20 72 20 3d 20 43 4f |chain; r|; r = CO|
|00005280| 4e 53 54 5f 44 4f 55 42 | 4c 45 5f 43 48 41 49 4e |NST_DOUB|LE_CHAIN|
|00005290| 20 28 72 29 29 0d 20 20 | 20 20 69 66 20 28 43 4f | (r)). | if (CO|
|000052a0| 4e 53 54 5f 44 4f 55 42 | 4c 45 5f 4c 4f 57 20 28 |NST_DOUB|LE_LOW (|
|000052b0| 72 29 20 3d 3d 20 69 30 | 20 26 26 20 43 4f 4e 53 |r) == i0| && CONS|
|000052c0| 54 5f 44 4f 55 42 4c 45 | 5f 48 49 47 48 20 28 72 |T_DOUBLE|_HIGH (r|
|000052d0| 29 20 3d 3d 20 69 31 0d | 09 26 26 20 47 45 54 5f |) == i1.|.&& GET_|
|000052e0| 4d 4f 44 45 20 28 72 29 | 20 3d 3d 20 6d 6f 64 65 |MODE (r)| == mode|
|000052f0| 29 0d 20 20 20 20 20 20 | 72 65 74 75 72 6e 20 72 |). |return r|
|00005300| 3b 0d 0d 20 20 2f 2a 20 | 4e 6f 3b 20 6d 61 6b 65 |;.. /* |No; make|
|00005310| 20 61 20 6e 65 77 20 6f | 6e 65 20 61 6e 64 20 61 | a new o|ne and a|
|00005320| 64 64 20 69 74 20 74 6f | 20 74 68 65 20 63 68 61 |dd it to| the cha|
|00005330| 69 6e 2e 20 20 2a 2f 0d | 0d 20 20 72 20 3d 20 67 |in. */.|. r = g|
|00005340| 65 6e 5f 72 74 78 20 28 | 43 4f 4e 53 54 5f 44 4f |en_rtx (|CONST_DO|
|00005350| 55 42 4c 45 2c 20 6d 6f | 64 65 2c 20 30 2c 20 69 |UBLE, mo|de, 0, i|
|00005360| 30 2c 20 69 31 29 3b 0d | 0d 20 20 43 4f 4e 53 54 |0, i1);.|. CONST|
|00005370| 5f 44 4f 55 42 4c 45 5f | 43 48 41 49 4e 20 28 72 |_DOUBLE_|CHAIN (r|
|00005380| 29 20 3d 20 72 65 61 6c | 5f 63 6f 6e 73 74 61 6e |) = real|_constan|
|00005390| 74 5f 63 68 61 69 6e 3b | 0d 20 20 72 65 61 6c 5f |t_chain;|. real_|
|000053a0| 63 6f 6e 73 74 61 6e 74 | 5f 63 68 61 69 6e 20 3d |constant|_chain =|
|000053b0| 20 72 3b 0d 0d 20 20 2f | 2a 20 53 74 6f 72 65 20 | r;.. /|* Store |
|000053c0| 63 6f 6e 73 74 30 5f 72 | 74 78 20 69 6e 20 6d 65 |const0_r|tx in me|
|000053d0| 6d 2d 73 6c 6f 74 20 73 | 69 6e 63 65 20 74 68 69 |m-slot s|ince thi|
|000053e0| 73 20 43 4f 4e 53 54 5f | 44 4f 55 42 4c 45 20 69 |s CONST_|DOUBLE i|
|000053f0| 73 20 6f 6e 20 74 68 65 | 20 63 68 61 69 6e 2e 0d |s on the| chain..|
|00005400| 20 20 20 20 20 41 63 74 | 75 61 6c 20 75 73 65 20 | Act|ual use |
|00005410| 6f 66 20 6d 65 6d 2d 73 | 6c 6f 74 20 69 73 20 6f |of mem-s|lot is o|
|00005420| 6e 6c 79 20 74 68 72 6f | 75 67 68 20 66 6f 72 63 |nly thro|ugh forc|
|00005430| 65 5f 63 6f 6e 73 74 5f | 64 6f 75 62 6c 65 5f 6d |e_const_|double_m|
|00005440| 65 6d 2e 20 20 2a 2f 0d | 0d 20 20 43 4f 4e 53 54 |em. */.|. CONST|
|00005450| 5f 44 4f 55 42 4c 45 5f | 4d 45 4d 20 28 72 29 20 |_DOUBLE_|MEM (r) |
|00005460| 3d 20 63 6f 6e 73 74 30 | 5f 72 74 78 3b 0d 0d 20 |= const0|_rtx;.. |
|00005470| 20 72 65 74 75 72 6e 20 | 72 3b 0d 7d 0d 0d 2f 2a | return |r;.}../*|
|00005480| 20 52 65 74 75 72 6e 20 | 61 20 43 4f 4e 53 54 5f | Return |a CONST_|
|00005490| 44 4f 55 42 4c 45 20 66 | 6f 72 20 61 20 73 70 65 |DOUBLE f|or a spe|
|000054a0| 63 69 66 69 65 64 20 60 | 64 6f 75 62 6c 65 27 20 |cified `|double' |
|000054b0| 76 61 6c 75 65 0d 20 20 | 20 61 6e 64 20 6d 61 63 |value. | and mac|
|000054c0| 68 69 6e 65 20 6d 6f 64 | 65 2e 20 20 2a 2f 0d 0d |hine mod|e. */..|
|000054d0| 72 74 78 0d 69 6d 6d 65 | 64 5f 72 65 61 6c 5f 63 |rtx.imme|d_real_c|
|000054e0| 6f 6e 73 74 5f 31 20 28 | 64 2c 20 6d 6f 64 65 29 |onst_1 (|d, mode)|
|000054f0| 0d 20 20 20 20 20 52 45 | 41 4c 5f 56 41 4c 55 45 |. RE|AL_VALUE|
|00005500| 5f 54 59 50 45 20 64 3b | 0d 20 20 20 20 20 65 6e |_TYPE d;|. en|
|00005510| 75 6d 20 6d 61 63 68 69 | 6e 65 5f 6d 6f 64 65 20 |um machi|ne_mode |
|00005520| 6d 6f 64 65 3b 0d 7b 0d | 20 20 75 6e 69 6f 6e 20 |mode;.{.| union |
|00005530| 72 65 61 6c 5f 65 78 74 | 72 61 63 74 20 75 3b 0d |real_ext|ract u;.|
|00005540| 20 20 72 65 67 69 73 74 | 65 72 20 72 74 78 20 72 | regist|er rtx r|
|00005550| 3b 0d 20 20 52 45 41 4c | 5f 56 41 4c 55 45 5f 54 |;. REAL|_VALUE_T|
|00005560| 59 50 45 20 6e 65 67 61 | 74 65 64 3b 0d 0d 20 20 |YPE nega|ted;.. |
|00005570| 2f 2a 20 47 65 74 20 74 | 68 65 20 64 65 73 69 72 |/* Get t|he desir|
|00005580| 65 64 20 60 64 6f 75 62 | 6c 65 27 20 76 61 6c 75 |ed `doub|le' valu|
|00005590| 65 20 61 73 20 61 20 73 | 65 71 75 65 6e 63 65 20 |e as a s|equence |
|000055a0| 6f 66 20 69 6e 74 73 0d | 20 20 20 20 20 73 69 6e |of ints.| sin|
|000055b0| 63 65 20 74 68 61 74 20 | 69 73 20 68 6f 77 20 74 |ce that |is how t|
|000055c0| 68 65 79 20 61 72 65 20 | 73 74 6f 72 65 64 20 69 |hey are |stored i|
|000055d0| 6e 20 61 20 43 4f 4e 53 | 54 5f 44 4f 55 42 4c 45 |n a CONS|T_DOUBLE|
|000055e0| 2e 20 20 2a 2f 0d 0d 20 | 20 75 2e 64 20 3d 20 64 |. */.. | u.d = d|
|000055f0| 3b 0d 0d 20 20 2f 2a 20 | 44 65 74 65 63 74 20 7a |;.. /* |Detect z|
|00005600| 65 72 6f 2e 20 20 2a 2f | 0d 0d 20 20 6e 65 67 61 |ero. */|.. nega|
|00005610| 74 65 64 20 3d 20 52 45 | 41 4c 5f 56 41 4c 55 45 |ted = RE|AL_VALUE|
|00005620| 5f 4e 45 47 41 54 45 20 | 28 64 29 3b 0d 20 20 69 |_NEGATE |(d);. i|
|00005630| 66 20 28 52 45 41 4c 5f | 56 41 4c 55 45 53 5f 45 |f (REAL_|VALUES_E|
|00005640| 51 55 41 4c 20 28 6e 65 | 67 61 74 65 64 2c 20 64 |QUAL (ne|gated, d|
|00005650| 29 29 0d 23 69 66 64 65 | 66 20 41 50 50 4c 45 5f |)).#ifde|f APPLE_|
|00005660| 48 41 58 0d 20 20 20 20 | 2f 2a 20 52 65 74 75 72 |HAX. |/* Retur|
|00005670| 6e 20 74 68 65 20 63 6f | 72 72 65 63 74 20 7a 65 |n the co|rrect ze|
|00005680| 72 6f 20 72 74 78 20 66 | 6f 72 20 61 6c 6c 20 66 |ro rtx f|or all f|
|00005690| 6c 6f 61 74 20 6d 6f 64 | 65 73 20 69 6e 63 6c 75 |loat mod|es inclu|
|000056a0| 64 69 6e 67 20 58 46 2e | 20 2a 2f 0d 20 20 20 20 |ding XF.| */. |
|000056b0| 72 65 74 75 72 6e 20 28 | 43 4f 4e 53 54 30 5f 52 |return (|CONST0_R|
|000056c0| 54 58 20 28 6d 6f 64 65 | 29 29 3b 0d 23 65 6c 73 |TX (mode|));.#els|
|000056d0| 65 0d 20 20 20 20 72 65 | 74 75 72 6e 20 28 6d 6f |e. re|turn (mo|
|000056e0| 64 65 20 3d 3d 20 44 46 | 6d 6f 64 65 20 3f 20 64 |de == DF|mode ? d|
|000056f0| 63 6f 6e 73 74 30 5f 72 | 74 78 20 3a 20 66 63 6f |const0_r|tx : fco|
|00005700| 6e 73 74 30 5f 72 74 78 | 29 3b 0d 23 65 6e 64 69 |nst0_rtx|);.#endi|
|00005710| 66 20 2f 2a 20 41 50 50 | 4c 45 5f 48 41 58 20 2a |f /* APP|LE_HAX *|
|00005720| 2f 0d 0d 20 20 69 66 20 | 28 73 69 7a 65 6f 66 20 |/.. if |(sizeof |
|00005730| 75 20 3d 3d 20 32 20 2a | 20 73 69 7a 65 6f 66 20 |u == 2 *| sizeof |
|00005740| 28 69 6e 74 29 29 0d 20 | 20 20 20 72 65 74 75 72 |(int)). | retur|
|00005750| 6e 20 69 6d 6d 65 64 5f | 64 6f 75 62 6c 65 5f 63 |n immed_|double_c|
|00005760| 6f 6e 73 74 20 28 75 2e | 69 5b 30 5d 2c 20 75 2e |onst (u.|i[0], u.|
|00005770| 69 5b 31 5d 2c 20 6d 6f | 64 65 29 3b 0d 0d 20 20 |i[1], mo|de);.. |
|00005780| 2f 2a 20 54 68 65 20 72 | 65 73 74 20 6f 66 20 74 |/* The r|est of t|
|00005790| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 20 68 61 6e |his func|tion han|
|000057a0| 64 6c 65 73 20 74 68 65 | 20 63 61 73 65 20 77 68 |dles the| case wh|
|000057b0| 65 72 65 0d 20 20 20 20 | 20 61 20 66 6c 6f 61 74 |ere. | a float|
|000057c0| 20 76 61 6c 75 65 20 72 | 65 71 75 69 72 65 73 20 | value r|equires |
|000057d0| 6d 6f 72 65 20 74 68 61 | 6e 20 32 20 69 6e 74 73 |more tha|n 2 ints|
|000057e0| 20 6f 66 20 73 70 61 63 | 65 2e 0d 20 20 20 20 20 | of spac|e.. |
|000057f0| 49 74 20 77 69 6c 6c 20 | 62 65 20 64 65 6c 65 74 |It will |be delet|
|00005800| 65 64 20 61 73 20 64 65 | 61 64 20 63 6f 64 65 20 |ed as de|ad code |
|00005810| 6f 6e 20 6d 61 63 68 69 | 6e 65 73 20 74 68 61 74 |on machi|nes that|
|00005820| 20 64 6f 6e 27 74 20 6e | 65 65 64 20 69 74 2e 20 | don't n|eed it. |
|00005830| 20 2a 2f 0d 0d 20 20 2f | 2a 20 53 65 61 72 63 68 | */.. /|* Search|
|00005840| 20 74 68 65 20 63 68 61 | 69 6e 20 66 6f 72 20 61 | the cha|in for a|
|00005850| 6e 20 65 78 69 73 74 69 | 6e 67 20 43 4f 4e 53 54 |n existi|ng CONST|
|00005860| 5f 44 4f 55 42 4c 45 20 | 77 69 74 68 20 74 68 65 |_DOUBLE |with the|
|00005870| 20 72 69 67 68 74 20 76 | 61 6c 75 65 2e 0d 20 20 | right v|alue.. |
|00005880| 20 20 20 49 66 20 6f 6e | 65 20 69 73 20 66 6f 75 | If on|e is fou|
|00005890| 6e 64 2c 20 72 65 74 75 | 72 6e 20 69 74 2e 20 20 |nd, retu|rn it. |
|000058a0| 2a 2f 0d 0d 20 20 66 6f | 72 20 28 72 20 3d 20 72 |*/.. fo|r (r = r|
|000058b0| 65 61 6c 5f 63 6f 6e 73 | 74 61 6e 74 5f 63 68 61 |eal_cons|tant_cha|
|000058c0| 69 6e 3b 20 72 3b 20 72 | 20 3d 20 43 4f 4e 53 54 |in; r; r| = CONST|
|000058d0| 5f 44 4f 55 42 4c 45 5f | 43 48 41 49 4e 20 28 72 |_DOUBLE_|CHAIN (r|
|000058e0| 29 29 0d 20 20 20 20 69 | 66 20 28 21 20 62 63 6d |)). i|f (! bcm|
|000058f0| 70 20 28 26 43 4f 4e 53 | 54 5f 44 4f 55 42 4c 45 |p (&CONS|T_DOUBLE|
|00005900| 5f 4c 4f 57 20 28 72 29 | 2c 20 26 75 2c 20 73 69 |_LOW (r)|, &u, si|
|00005910| 7a 65 6f 66 20 75 29 0d | 09 26 26 20 47 45 54 5f |zeof u).|.&& GET_|
|00005920| 4d 4f 44 45 20 28 72 29 | 20 3d 3d 20 6d 6f 64 65 |MODE (r)| == mode|
|00005930| 29 0d 20 20 20 20 20 20 | 72 65 74 75 72 6e 20 72 |). |return r|
|00005940| 3b 0d 0d 20 20 2f 2a 20 | 4e 6f 3b 20 6d 61 6b 65 |;.. /* |No; make|
|00005950| 20 61 20 6e 65 77 20 6f | 6e 65 20 61 6e 64 20 61 | a new o|ne and a|
|00005960| 64 64 20 69 74 20 74 6f | 20 74 68 65 20 63 68 61 |dd it to| the cha|
|00005970| 69 6e 2e 20 20 2a 2f 0d | 0d 20 20 72 20 3d 20 72 |in. */.|. r = r|
|00005980| 74 78 5f 61 6c 6c 6f 63 | 20 28 43 4f 4e 53 54 5f |tx_alloc| (CONST_|
|00005990| 44 4f 55 42 4c 45 29 3b | 0d 20 20 50 55 54 5f 4d |DOUBLE);|. PUT_M|
|000059a0| 4f 44 45 20 28 72 2c 20 | 6d 6f 64 65 29 3b 0d 20 |ODE (r, |mode);. |
|000059b0| 20 62 63 6f 70 79 20 28 | 26 75 2c 20 26 43 4f 4e | bcopy (|&u, &CON|
|000059c0| 53 54 5f 44 4f 55 42 4c | 45 5f 4c 4f 57 20 28 72 |ST_DOUBL|E_LOW (r|
|000059d0| 29 2c 20 73 69 7a 65 6f | 66 20 75 29 3b 0d 0d 20 |), sizeo|f u);.. |
|000059e0| 20 43 4f 4e 53 54 5f 44 | 4f 55 42 4c 45 5f 43 48 | CONST_D|OUBLE_CH|
|000059f0| 41 49 4e 20 28 72 29 20 | 3d 20 72 65 61 6c 5f 63 |AIN (r) |= real_c|
|00005a00| 6f 6e 73 74 61 6e 74 5f | 63 68 61 69 6e 3b 0d 20 |onstant_|chain;. |
|00005a10| 20 72 65 61 6c 5f 63 6f | 6e 73 74 61 6e 74 5f 63 | real_co|nstant_c|
|00005a20| 68 61 69 6e 20 3d 20 72 | 3b 0d 0d 20 20 2f 2a 20 |hain = r|;.. /* |
|00005a30| 53 74 6f 72 65 20 63 6f | 6e 73 74 30 5f 72 74 78 |Store co|nst0_rtx|
|00005a40| 20 69 6e 20 73 6c 6f 74 | 20 32 20 73 69 6e 63 65 | in slot| 2 since|
|00005a50| 20 74 68 69 73 20 43 4f | 4e 53 54 5f 44 4f 55 42 | this CO|NST_DOUB|
|00005a60| 4c 45 20 69 73 20 6f 6e | 20 74 68 65 20 63 68 61 |LE is on| the cha|
|00005a70| 69 6e 2e 0d 20 20 20 20 | 20 41 63 74 75 61 6c 20 |in.. | Actual |
|00005a80| 75 73 65 20 6f 66 20 73 | 6c 6f 74 20 32 20 69 73 |use of s|lot 2 is|
|00005a90| 20 6f 6e 6c 79 20 74 68 | 72 6f 75 67 68 20 66 6f | only th|rough fo|
|00005aa0| 72 63 65 5f 63 6f 6e 73 | 74 5f 64 6f 75 62 6c 65 |rce_cons|t_double|
|00005ab0| 5f 6d 65 6d 2e 20 20 2a | 2f 0d 0d 20 20 43 4f 4e |_mem. *|/.. CON|
|00005ac0| 53 54 5f 44 4f 55 42 4c | 45 5f 4d 45 4d 20 28 72 |ST_DOUBL|E_MEM (r|
|00005ad0| 29 20 3d 20 63 6f 6e 73 | 74 30 5f 72 74 78 3b 0d |) = cons|t0_rtx;.|
|00005ae0| 0d 20 20 72 65 74 75 72 | 6e 20 72 3b 0d 7d 0d 0d |. retur|n r;.}..|
|00005af0| 2f 2a 20 52 65 74 75 72 | 6e 20 61 20 43 4f 4e 53 |/* Retur|n a CONS|
|00005b00| 54 5f 44 4f 55 42 4c 45 | 20 72 74 78 20 66 6f 72 |T_DOUBLE| rtx for|
|00005b10| 20 61 20 76 61 6c 75 65 | 20 73 70 65 63 69 66 69 | a value| specifi|
|00005b20| 65 64 20 62 79 20 45 58 | 50 2c 0d 20 20 20 77 68 |ed by EX|P,. wh|
|00005b30| 69 63 68 20 6d 75 73 74 | 20 62 65 20 61 20 52 45 |ich must| be a RE|
|00005b40| 41 4c 5f 43 53 54 20 74 | 72 65 65 20 6e 6f 64 65 |AL_CST t|ree node|
|00005b50| 2e 20 20 2a 2f 0d 0d 72 | 74 78 0d 69 6d 6d 65 64 |. */..r|tx.immed|
|00005b60| 5f 72 65 61 6c 5f 63 6f | 6e 73 74 20 28 65 78 70 |_real_co|nst (exp|
|00005b70| 29 0d 20 20 20 20 20 74 | 72 65 65 20 65 78 70 3b |). t|ree exp;|
|00005b80| 0d 7b 0d 20 20 72 65 74 | 75 72 6e 20 69 6d 6d 65 |.{. ret|urn imme|
|00005b90| 64 5f 72 65 61 6c 5f 63 | 6f 6e 73 74 5f 31 20 28 |d_real_c|onst_1 (|
|00005ba0| 54 52 45 45 5f 52 45 41 | 4c 5f 43 53 54 20 28 65 |TREE_REA|L_CST (e|
|00005bb0| 78 70 29 2c 20 54 59 50 | 45 5f 4d 4f 44 45 20 28 |xp), TYP|E_MODE (|
|00005bc0| 54 52 45 45 5f 54 59 50 | 45 20 28 65 78 70 29 29 |TREE_TYP|E (exp))|
|00005bd0| 29 3b 0d 7d 0d 0d 2f 2a | 20 47 69 76 65 6e 20 61 |);.}../*| Given a|
|00005be0| 20 43 4f 4e 53 54 5f 44 | 4f 55 42 4c 45 2c 20 63 | CONST_D|OUBLE, c|
|00005bf0| 61 75 73 65 20 61 20 63 | 6f 6e 73 74 61 6e 74 20 |ause a c|onstant |
|00005c00| 69 6e 20 6d 65 6d 6f 72 | 79 20 74 6f 20 62 65 20 |in memor|y to be |
|00005c10| 63 72 65 61 74 65 64 0d | 20 20 20 28 75 6e 6c 65 |created.| (unle|
|00005c20| 73 73 20 77 65 20 61 6c | 72 65 61 64 79 20 68 61 |ss we al|ready ha|
|00005c30| 76 65 20 6f 6e 65 20 66 | 6f 72 20 74 68 65 20 73 |ve one f|or the s|
|00005c40| 61 6d 65 20 76 61 6c 75 | 65 29 0d 20 20 20 61 6e |ame valu|e). an|
|00005c50| 64 20 72 65 74 75 72 6e | 20 61 20 4d 45 4d 20 72 |d return| a MEM r|
|00005c60| 74 78 20 74 6f 20 72 65 | 66 65 72 20 74 6f 20 69 |tx to re|fer to i|
|00005c70| 74 2e 0d 20 20 20 50 75 | 74 20 74 68 65 20 43 4f |t.. Pu|t the CO|
|00005c80| 4e 53 54 5f 44 4f 55 42 | 4c 45 20 6f 6e 20 72 65 |NST_DOUB|LE on re|
|00005c90| 61 6c 5f 63 6f 6e 73 74 | 61 6e 74 5f 63 68 61 69 |al_const|ant_chai|
|00005ca0| 6e 20 69 66 20 69 74 20 | 69 73 6e 27 74 20 61 6c |n if it |isn't al|
|00005cb0| 72 65 61 64 79 20 74 68 | 65 72 65 2e 20 20 2a 2f |ready th|ere. */|
|00005cc0| 0d 0d 72 74 78 0d 66 6f | 72 63 65 5f 63 6f 6e 73 |..rtx.fo|rce_cons|
|00005cd0| 74 5f 64 6f 75 62 6c 65 | 5f 6d 65 6d 20 28 72 29 |t_double|_mem (r)|
|00005ce0| 0d 20 20 20 20 20 72 74 | 78 20 72 3b 0d 7b 0d 20 |. rt|x r;.{. |
|00005cf0| 20 69 66 20 28 43 4f 4e | 53 54 5f 44 4f 55 42 4c | if (CON|ST_DOUBL|
|00005d00| 45 5f 4d 45 4d 20 28 72 | 29 20 3d 3d 20 63 63 30 |E_MEM (r|) == cc0|
|00005d10| 5f 72 74 78 29 0d 20 20 | 20 20 7b 0d 20 20 20 20 |_rtx). | {. |
|00005d20| 20 20 43 4f 4e 53 54 5f | 44 4f 55 42 4c 45 5f 43 | CONST_|DOUBLE_C|
|00005d30| 48 41 49 4e 20 28 72 29 | 20 3d 20 72 65 61 6c 5f |HAIN (r)| = real_|
|00005d40| 63 6f 6e 73 74 61 6e 74 | 5f 63 68 61 69 6e 3b 0d |constant|_chain;.|
|00005d50| 20 20 20 20 20 20 72 65 | 61 6c 5f 63 6f 6e 73 74 | re|al_const|
|00005d60| 61 6e 74 5f 63 68 61 69 | 6e 20 3d 20 72 3b 0d 20 |ant_chai|n = r;. |
|00005d70| 20 20 20 20 20 43 4f 4e | 53 54 5f 44 4f 55 42 4c | CON|ST_DOUBL|
|00005d80| 45 5f 4d 45 4d 20 28 72 | 29 20 3d 20 63 6f 6e 73 |E_MEM (r|) = cons|
|00005d90| 74 30 5f 72 74 78 3b 0d | 20 20 20 20 7d 0d 0d 20 |t0_rtx;.| }.. |
|00005da0| 20 69 66 20 28 43 4f 4e | 53 54 5f 44 4f 55 42 4c | if (CON|ST_DOUBL|
|00005db0| 45 5f 4d 45 4d 20 28 72 | 29 20 3d 3d 20 63 6f 6e |E_MEM (r|) == con|
|00005dc0| 73 74 30 5f 72 74 78 29 | 0d 20 20 20 20 7b 0d 20 |st0_rtx)|. {. |
|00005dd0| 20 20 20 20 20 43 4f 4e | 53 54 5f 44 4f 55 42 4c | CON|ST_DOUBL|
|00005de0| 45 5f 4d 45 4d 20 28 72 | 29 20 3d 20 66 6f 72 63 |E_MEM (r|) = forc|
|00005df0| 65 5f 63 6f 6e 73 74 5f | 6d 65 6d 20 28 47 45 54 |e_const_|mem (GET|
|00005e00| 5f 4d 4f 44 45 20 28 72 | 29 2c 20 72 29 3b 0d 20 |_MODE (r|), r);. |
|00005e10| 20 20 20 7d 0d 20 20 2f | 2a 20 43 4f 4e 53 54 5f | }. /|* CONST_|
|00005e20| 44 4f 55 42 4c 45 5f 4d | 45 4d 20 28 72 29 20 69 |DOUBLE_M|EM (r) i|
|00005e30| 73 20 6e 6f 77 20 61 20 | 4d 45 4d 20 77 69 74 68 |s now a |MEM with|
|00005e40| 20 61 20 63 6f 6e 73 74 | 61 6e 74 20 61 64 64 72 | a const|ant addr|
|00005e50| 65 73 73 2e 0d 20 20 20 | 20 20 49 66 20 74 68 61 |ess.. | If tha|
|00005e60| 74 20 69 73 20 6c 65 67 | 69 74 69 6d 61 74 65 2c |t is leg|itimate,|
|00005e70| 20 72 65 74 75 72 6e 20 | 69 74 2e 0d 20 20 20 20 | return |it.. |
|00005e80| 20 4f 74 68 65 77 69 73 | 65 20 69 74 20 77 69 6c | Othewis|e it wil|
|00005e90| 6c 20 6e 65 65 64 20 72 | 65 6c 6f 61 64 69 6e 67 |l need r|eloading|
|00005ea0| 2c 20 73 6f 20 72 65 74 | 75 72 6e 20 61 20 63 6f |, so ret|urn a co|
|00005eb0| 70 79 20 6f 66 20 69 74 | 2e 20 20 2a 2f 0d 20 20 |py of it|. */. |
|00005ec0| 69 66 20 28 6d 65 6d 6f | 72 79 5f 61 64 64 72 65 |if (memo|ry_addre|
|00005ed0| 73 73 5f 70 20 28 47 45 | 54 5f 4d 4f 44 45 20 28 |ss_p (GE|T_MODE (|
|00005ee0| 72 29 2c 20 58 45 58 50 | 20 28 43 4f 4e 53 54 5f |r), XEXP| (CONST_|
|00005ef0| 44 4f 55 42 4c 45 5f 4d | 45 4d 20 28 72 29 2c 20 |DOUBLE_M|EM (r), |
|00005f00| 30 29 29 29 0d 20 20 20 | 20 72 65 74 75 72 6e 20 |0))). | return |
|00005f10| 43 4f 4e 53 54 5f 44 4f | 55 42 4c 45 5f 4d 45 4d |CONST_DO|UBLE_MEM|
|00005f20| 20 28 72 29 3b 0d 20 20 | 72 65 74 75 72 6e 20 67 | (r);. |return g|
|00005f30| 65 6e 5f 72 74 78 20 28 | 4d 45 4d 2c 20 47 45 54 |en_rtx (|MEM, GET|
|00005f40| 5f 4d 4f 44 45 20 28 72 | 29 2c 20 58 45 58 50 20 |_MODE (r|), XEXP |
|00005f50| 28 43 4f 4e 53 54 5f 44 | 4f 55 42 4c 45 5f 4d 45 |(CONST_D|OUBLE_ME|
|00005f60| 4d 20 28 72 29 2c 20 30 | 29 29 3b 0d 7d 0d 0d 2f |M (r), 0|));.}../|
|00005f70| 2a 20 41 74 20 74 68 65 | 20 65 6e 64 20 6f 66 20 |* At the| end of |
|00005f80| 61 20 66 75 6e 63 74 69 | 6f 6e 2c 20 66 6f 72 67 |a functi|on, forg|
|00005f90| 65 74 20 74 68 65 20 6d | 65 6d 6f 72 79 2d 63 6f |et the m|emory-co|
|00005fa0| 6e 73 74 61 6e 74 73 0d | 20 20 20 70 72 65 76 69 |nstants.| previ|
|00005fb0| 6f 75 73 6c 79 20 6d 61 | 64 65 20 66 6f 72 20 43 |ously ma|de for C|
|00005fc0| 4f 4e 53 54 5f 44 4f 55 | 42 4c 45 73 2e 20 20 4d |ONST_DOU|BLEs. M|
|00005fd0| 61 72 6b 20 74 68 65 6d | 20 61 73 20 6e 6f 74 20 |ark them| as not |
|00005fe0| 6f 6e 20 72 65 61 6c 5f | 63 6f 6e 73 74 61 6e 74 |on real_|constant|
|00005ff0| 5f 63 68 61 69 6e 2e 0d | 20 20 20 41 6c 73 6f 20 |_chain..| Also |
|00006000| 63 6c 65 61 72 20 6f 75 | 74 20 72 65 61 6c 5f 63 |clear ou|t real_c|
|00006010| 6f 6e 73 74 61 6e 74 5f | 63 68 61 69 6e 20 61 6e |onstant_|chain an|
|00006020| 64 20 63 6c 65 61 72 20 | 6f 75 74 20 61 6c 6c 20 |d clear |out all |
|00006030| 74 68 65 20 63 68 61 69 | 6e 2d 70 6f 69 6e 74 65 |the chai|n-pointe|
|00006040| 72 73 2e 20 20 2a 2f 0d | 0d 76 6f 69 64 0d 63 6c |rs. */.|.void.cl|
|00006050| 65 61 72 5f 63 6f 6e 73 | 74 5f 64 6f 75 62 6c 65 |ear_cons|t_double|
|00006060| 5f 6d 65 6d 20 28 29 0d | 7b 0d 20 20 72 65 67 69 |_mem ().|{. regi|
|00006070| 73 74 65 72 20 72 74 78 | 20 72 2c 20 6e 65 78 74 |ster rtx| r, next|
|00006080| 3b 0d 0d 20 20 66 6f 72 | 20 28 72 20 3d 20 72 65 |;.. for| (r = re|
|00006090| 61 6c 5f 63 6f 6e 73 74 | 61 6e 74 5f 63 68 61 69 |al_const|ant_chai|
|000060a0| 6e 3b 20 72 3b 20 72 20 | 3d 20 6e 65 78 74 29 0d |n; r; r |= next).|
|000060b0| 20 20 20 20 7b 0d 20 20 | 20 20 20 20 6e 65 78 74 | {. | next|
|000060c0| 20 3d 20 43 4f 4e 53 54 | 5f 44 4f 55 42 4c 45 5f | = CONST|_DOUBLE_|
|000060d0| 43 48 41 49 4e 20 28 72 | 29 3b 0d 20 20 20 20 20 |CHAIN (r|);. |
|000060e0| 20 43 4f 4e 53 54 5f 44 | 4f 55 42 4c 45 5f 43 48 | CONST_D|OUBLE_CH|
|000060f0| 41 49 4e 20 28 72 29 20 | 3d 20 30 3b 0d 20 20 20 |AIN (r) |= 0;. |
|00006100| 20 20 20 43 4f 4e 53 54 | 5f 44 4f 55 42 4c 45 5f | CONST|_DOUBLE_|
|00006110| 4d 45 4d 20 28 72 29 20 | 3d 20 63 63 30 5f 72 74 |MEM (r) |= cc0_rt|
|00006120| 78 3b 0d 20 20 20 20 7d | 0d 20 20 72 65 61 6c 5f |x;. }|. real_|
|00006130| 63 6f 6e 73 74 61 6e 74 | 5f 63 68 61 69 6e 20 3d |constant|_chain =|
|00006140| 20 30 3b 0d 7d 0d 0c 0d | 2f 2a 20 47 69 76 65 6e | 0;.}...|/* Given|
|00006150| 20 61 6e 20 65 78 70 72 | 65 73 73 69 6f 6e 20 45 | an expr|ession E|
|00006160| 58 50 20 77 69 74 68 20 | 61 20 63 6f 6e 73 74 61 |XP with |a consta|
|00006170| 6e 74 20 76 61 6c 75 65 | 2c 0d 20 20 20 72 65 64 |nt value|,. red|
|00006180| 75 63 65 20 69 74 20 74 | 6f 20 74 68 65 20 73 75 |uce it t|o the su|
|00006190| 6d 20 6f 66 20 61 6e 20 | 61 73 73 65 6d 62 6c 65 |m of an |assemble|
|000061a0| 72 20 73 79 6d 62 6f 6c | 20 61 6e 64 20 61 6e 20 |r symbol| and an |
|000061b0| 69 6e 74 65 67 65 72 2e | 0d 20 20 20 53 74 6f 72 |integer.|. Stor|
|000061c0| 65 20 74 68 65 6d 20 62 | 6f 74 68 20 69 6e 20 74 |e them b|oth in t|
|000061d0| 68 65 20 73 74 72 75 63 | 74 75 72 65 20 2a 56 41 |he struc|ture *VA|
|000061e0| 4c 55 45 2e 0d 20 20 20 | 41 62 6f 72 74 20 69 66 |LUE.. |Abort if|
|000061f0| 20 45 58 50 20 64 6f 65 | 73 20 6e 6f 74 20 72 65 | EXP doe|s not re|
|00006200| 64 75 63 65 2e 20 20 2a | 2f 0d 0d 73 74 72 75 63 |duce. *|/..struc|
|00006210| 74 20 61 64 64 72 5f 63 | 6f 6e 73 74 0d 7b 0d 20 |t addr_c|onst.{. |
|00006220| 20 72 74 78 20 62 61 73 | 65 3b 0d 20 20 69 6e 74 | rtx bas|e;. int|
|00006230| 20 6f 66 66 73 65 74 3b | 0d 7d 3b 0d 0d 73 74 61 | offset;|.};..sta|
|00006240| 74 69 63 20 76 6f 69 64 | 0d 64 65 63 6f 64 65 5f |tic void|.decode_|
|00006250| 61 64 64 72 5f 63 6f 6e | 73 74 20 28 65 78 70 2c |addr_con|st (exp,|
|00006260| 20 76 61 6c 75 65 29 0d | 20 20 20 20 20 74 72 65 | value).| tre|
|00006270| 65 20 65 78 70 3b 0d 20 | 20 20 20 20 73 74 72 75 |e exp;. | stru|
|00006280| 63 74 20 61 64 64 72 5f | 63 6f 6e 73 74 20 2a 76 |ct addr_|const *v|
|00006290| 61 6c 75 65 3b 0d 7b 0d | 20 20 72 65 67 69 73 74 |alue;.{.| regist|
|000062a0| 65 72 20 74 72 65 65 20 | 74 61 72 67 65 74 20 3d |er tree |target =|
|000062b0| 20 54 52 45 45 5f 4f 50 | 45 52 41 4e 44 20 28 65 | TREE_OP|ERAND (e|
|000062c0| 78 70 2c 20 30 29 3b 0d | 20 20 72 65 67 69 73 74 |xp, 0);.| regist|
|000062d0| 65 72 20 69 6e 74 20 6f | 66 66 73 65 74 20 3d 20 |er int o|ffset = |
|000062e0| 30 3b 0d 20 20 72 65 67 | 69 73 74 65 72 20 72 74 |0;. reg|ister rt|
|000062f0| 78 20 78 3b 0d 0d 20 20 | 77 68 69 6c 65 20 28 31 |x x;.. |while (1|
|00006300| 29 0d 20 20 20 20 7b 0d | 20 20 20 20 20 20 69 66 |). {.| if|
|00006310| 20 28 54 52 45 45 5f 43 | 4f 44 45 20 28 74 61 72 | (TREE_C|ODE (tar|
|00006320| 67 65 74 29 20 3d 3d 20 | 43 4f 4d 50 4f 4e 45 4e |get) == |COMPONEN|
|00006330| 54 5f 52 45 46 29 0d 09 | 7b 0d 09 20 20 6f 66 66 |T_REF)..|{.. off|
|00006340| 73 65 74 20 2b 3d 20 44 | 45 43 4c 5f 4f 46 46 53 |set += D|ECL_OFFS|
|00006350| 45 54 20 28 54 52 45 45 | 5f 4f 50 45 52 41 4e 44 |ET (TREE|_OPERAND|
|00006360| 20 28 74 61 72 67 65 74 | 2c 20 31 29 29 20 2f 20 | (target|, 1)) / |
|00006370| 42 49 54 53 5f 50 45 52 | 5f 55 4e 49 54 3b 0d 09 |BITS_PER|_UNIT;..|
|00006380| 20 20 74 61 72 67 65 74 | 20 3d 20 54 52 45 45 5f | target| = TREE_|
|00006390| 4f 50 45 52 41 4e 44 20 | 28 74 61 72 67 65 74 2c |OPERAND |(target,|
|000063a0| 20 30 29 3b 0d 09 7d 0d | 20 20 20 20 20 20 65 6c | 0);..}.| el|
|000063b0| 73 65 20 69 66 20 28 54 | 52 45 45 5f 43 4f 44 45 |se if (T|REE_CODE|
|000063c0| 20 28 74 61 72 67 65 74 | 29 20 3d 3d 20 41 52 52 | (target|) == ARR|
|000063d0| 41 59 5f 52 45 46 29 0d | 09 7b 0d 09 20 20 69 66 |AY_REF).|.{.. if|
|000063e0| 20 28 54 52 45 45 5f 43 | 4f 44 45 20 28 54 52 45 | (TREE_C|ODE (TRE|
|000063f0| 45 5f 4f 50 45 52 41 4e | 44 20 28 74 61 72 67 65 |E_OPERAN|D (targe|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.